Application & System: Development / Integration / Orchestration
Calculate BMI
Posted on
By David Kittell
static int CalculateBMI(int weight, int height)
{
return (weight * 703) / (height * height);
}
Originally Posted on April 16, 2014 Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.
‘Kelly Theriot 11-2004 ‘Kelly’s Korner Option Explicit Set ws = WScript.CreateObject("WScript.Shell") Dim ws, t, p1, n, cn, MyBox, vbdefaultbutton Dim itemtype p1 = "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp" n = ws.RegRead(p1 & "PortNumber") t = "Change Port Number" cn = InputBox("Type in the new port number", t, n) If cn <> "" Then…
Lynx has a lot of good purposes but in this example below I’m simply going to strip URLs from a bookmarks HTML file exported from Chrome. brew install lynx lynx -dump -nonumbers -listonly bookmarks_11_18_16.html > links1.txt If you have created folders and links all over the place in Chrome or…