I hereby claim:
- I am darthschmoo on github.
- I am darth_schmoo (https://keybase.io/darth_schmoo) on keybase.
- I have a public key whose fingerprint is 8996 1066 CA78 3E67 78E8 9D75 512B E81A 8D94 CA49
To claim this, I am signing this object:
You have successfully downloaded a file. Huzzah! |
#!/usr/bin/env ruby | |
# TODOS: move lists into configuration file, plurals, better finding/replacing of variables | |
class LineParser | |
def without_comments( line ) | |
line.gsub( /#.*/, "" ) | |
end | |
end | |
class ListParser < LineParser |
# TODOS: move lists into configuration file, plurals, better finding/replacing of variables | |
# Not using | |
class Pluralizer | |
def initialize | |
@pluralize = {} | |
p "ash", "ashes" | |
p "fox", "foxes" | |
p "wolf", "wolves" | |
p "thief", "thieves" |
# returns the two boxes ["G", "G"], ["G", "S"] (equal odds for every order) | |
def get_boxes | |
dice_roll = rand() | |
if dice_roll < 0.25 | |
[["G", "G"], ["G", "S"]] | |
elsif dice_roll < 0.5 | |
[["G", "G"], ["S", "G"]] | |
elsif dice_roll < 0.75 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |
I hereby claim:
To claim this, I am signing this object:
module ChuckWendig | |
class AuthorRankGenerator | |
def initialize | |
@mood = %w(belated confused morose unwell insipid thoughtful incontinent chewy bratty arrogant untrustworthy | |
awestruck inebriated love-starved overwrought merciful doubtful analytical self-assured simplistic | |
enraged melancholy lustful depressed) | |
@descriptor = %w(fighting dancing stammering boiling endearing staggered judicious internal heat-loving | |
ragtime kleptomaniacal torrential climate-changing self-help razor-edged killer caffeinated | |
pugilistic bitcoin luddite libertarian progressive leftist right-wing patriotic unpatriotic |