Skip to content

Instantly share code, notes, and snippets.

#include <Arduboy2.h>
Arduboy2 arduboy;
const int FPS = 60;
const int WINNING_SCORE = 5;
int gameState = 0;
struct Ball {
@jameynakama
jameynakama / rainbow.zsh-theme
Last active August 29, 2015 14:02
zsh rainbow theme with git integration
# zsh rainbow theme with git integration
# use this to change your command-line life :)
# jameydeorio
function _prompt_info() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo $(git_prompt_info)
fi
}
@jameynakama
jameynakama / nolock.sh
Created February 8, 2012 06:19
Never get locked out of an ssh shell again
#!/bin/bash
while true
do
echo "hey!"
sleep 60
done
@jameynakama
jameynakama / howmanylives.py
Created July 21, 2011 23:43
How many lives does it take for a skydiver to die on the first leap?
from random import *
def jump():
jumps = 0
while True:
jumps += 1
if randrange(100000) is 1:
return jumps
lives = 0