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
#!/bin/sh | |
####Example 'ix.sh cat foobar' | |
"${@}" | curl -F 'f:1=<-' ix.io |
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
# We've defined the variable "meal" here to the name of the food we ate for breakfast! | |
meal = "An english muffin" | |
# Printing out breakfast | |
print("Breakfast:") | |
print(meal) | |
# Now update meal to be lunch! | |
meal = "Pizza" |
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
# description: a game to simulate a fortune cookie | |
from random import randint # to generate random number | |
# load the fortunes | |
def loadFortunes(): | |
global fortunes | |
fortunes[0] = "This is great, you're going to be rich and famous!" | |
fortunes[1] = "I'm sorry, just failure and proverty ahead for you." |
NewerOlder