Skip to content

Instantly share code, notes, and snippets.

View jamesurobertson's full-sized avatar

James Robertson jamesurobertson

View GitHub Profile
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
@jamesurobertson
jamesurobertson / react-cheatsheet.md
Last active March 18, 2023 03:21
React Cheatsheet for functional components
@jamesurobertson
jamesurobertson / adventure.py
Last active August 19, 2016 05:27
Adventure game
from sys import exit
def begin():
while True:
answer = raw_input("Are you ready, %s? Type yes or no: > " % name)
if answer == "yes" or answer == "Yes":
fork()
elif answer == "no" or answer == "No":
print "I'm sorry you feel that way. Try agian when you are ready :)"
quit()