Skip to content

Instantly share code, notes, and snippets.

View EmbeddedLinuxGuy's full-sized avatar

Jesse Zbikowski EmbeddedLinuxGuy

View GitHub Profile
@EmbeddedLinuxGuy
EmbeddedLinuxGuy / football.js
Created May 4, 2016 01:05
Armchair Quarterback
#!/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);
@EmbeddedLinuxGuy
EmbeddedLinuxGuy / timekeeperville.py
Created September 10, 2012 22:21 — forked from leif/timekeeperville.py
timekeeperville
"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 December 22, 2011 05:40 — forked from sontek/snowjob.sh
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear