This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
#badger 12 times | |
badger = 0 | |
while badger < 12: | |
print "Badger" | |
time.sleep(0.4) | |
badger = badger + 1 | |
#mushroom 2 times |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Jason Burk | jasonburk@gmail.com | twitter: @twothirtyam | app.net: @burk | |
--http://230.am | |
--Application to let user choose if they hidden files to be visible or not | |
set mainList to {"Show Files", "Hide Files"} | |
choose from list mainList with prompt "Would you like to show hidden files or re-hide them?" | |
set listchoice to result as text | |
if listchoice = "Show Files" then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Jason Burk | jasonburk@gmail.com | twitter: @twothirtyam | app.net: @burk | |
--http://230.am | |
--Application to let user choose if they would like a 2D or 3D dock | |
set mainList to {"2D", "3D"} | |
choose from list mainList with prompt "Would you like your dock to be 2D or 3D?" | |
set listchoice to result as text | |
if listchoice = "2D" then | |
tell application "Terminal" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jason Burk | |
# Python Version: 2.73 | |
# | |
#A program to calculate the square footage of a room, and also the cubic feet if the user desires. | |
print "****************************\n*** Room Size Calculator ***\n****************************" #Displays welcome message to user | |
print #blank line | |
room_width = input("What is the width of your room in feet?\n[Please enter a number] ") #asks user for input of room width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Only allow numbers and decimal point to be entered into input boxes. 46 = '.' & 48-57 = '0-9' | |
function numOnly(evt){ | |
var charCode = (evt.which) ? evt.which : event.keyCode | |
if ((charCode == 46) || (charCode >= 48 && charCode <= 57)){ | |
return true; | |
} | |
else { | |
return false; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:location.reload(true)">I am a link!</a> |