Skip to content

Instantly share code, notes, and snippets.

View flanger001's full-sized avatar
🧱

David Shaffer flanger001

🧱
View GitHub Profile
trap("SIGINT") { exit! }
total_width = `stty size`.scan(/\d+/)[1].to_i # terminal width
snokflakes = {}
puts "\033[2J"; # clearing output
loop do
snokflakes[rand(total_width)] = 0
@flanger001
flanger001 / springer-free-maths-books.md
Created December 29, 2015 14:06 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
require 'set'
class Subway
attr_reader :stops
def initialize(lines)
@stops = {}
lines.each_pair {|line, stops|
stops.each do |stop|