This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LINES=$(tput lines) | |
COLUMNS=$(tput cols) | |
declare -A snowflakes | |
declare -A lastflakes | |
clear |