Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Zbikowski EmbeddedLinuxGuy

View GitHub Profile
View football.js
#!/usr/bin/env node
var down = 1;
var yards = 10;
var yard_line = 20;
var suffix = ["st", "nd", "rd", "th" ];
process.stdin.setEncoding("utf8");
process.stdin.on("data", (t) => {
var c = t.substr(0,1);
View timekeeperville.py
"timekeeperville is a game where you must keep time"
# by Leif Ryge, 2012, WTFPL
from sys import argv
from time import time
from collections import deque
rate = 4 if len(argv) < 2 else int(argv[1])
level = 4 if len(argv) < 3 else int(argv[2])
data = [ deque([], 1) ]
start = time()
prev = start - (1.0/rate)
@EmbeddedLinuxGuy
EmbeddedLinuxGuy / gist:1509100
Created Dec 22, 2011 — forked from sontek/snowjob.sh
Make your terminal snow
View gist:1509100
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
You can’t perform that action at this time.