Skip to content

Instantly share code, notes, and snippets.

@InvisibleRasta
InvisibleRasta / ix.sh
Created November 16, 2018 20:26
pastebin at ix.io
#!/bin/sh
####Example 'ix.sh cat foobar'
"${@}" | curl -F 'f:1=<-' ix.io
@InvisibleRasta
InvisibleRasta / define_variable.py
Last active November 16, 2018 02:15
Variables and Print
# 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"
@InvisibleRasta
InvisibleRasta / fortune_teller.py
Created November 16, 2018 02:09
Fortune Teller
# 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."