I hereby claim:
- I am mroth on github.
- I am mroth (https://keybase.io/mroth) on keybase.
- I have a public key whose fingerprint is E116 C1C6 652E 47AB 1F3D 09C0 7A8F E576 BBED D364
To claim this, I am signing this object:
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
url = "http://www.ssa.gov/OACT/babynames/decades/names2000s.html" | |
doc = Nokogiri::HTML(open(url)) | |
doc.css("td td:nth-child(2)").each do |name| | |
puts name.content | |
end |
_ | |
(_) | |
| . | |
. |L /| . _ | |
_ . |\ _| \--+._/| . (_) | |
/ ||\| Y J ) / |/| ./ | |
J |)'( | ` F`.'/ _ | |
-<| F __ .-< (_) | |
| / .-'. `. /-. L___ |
$ brew --version | |
0.8 | |
$ which node | |
/usr/local/bin/node | |
$ node -v | |
v0.4.12 | |
$ ls -l `which node` |
HOMEBREW_VERSION: 0.9 | |
HEAD: 68426f4287ebd9819a8e8c39581e3c8a63964405 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.7.3 | |
Kernel Architecture: x86_64 | |
Xcode: 4.3.2 | |
GCC-4.0: N/A | |
GCC-4.2: build 5666 |
############################################################################################# | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 12/19/2011 | |
# MORE INFO: | |
# - http://blog.adku.com/2011/10/scalable-realtime-stats-with-graphite.html | |
# - https://github.com/gosquared/graphite-cookbook | |
# - http://coreygoldberg.blogspot.com.es/2012/04/installing-graphite-099-on-ubuntu-1204.html | |
############################################################################################# |
source "https://rubygems.org" | |
ruby '1.9.3' | |
gem 'sinatra' | |
gem 'thin' | |
gem 'foreman' |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'json' | |
require 'oj' | |
require 'msgpack' | |
require 'benchmark' | |
################################# | |
# set up sample data | |
################################# | |
def hash2array(hash) |
ERROR: MultiJson::DecodeError occured in stream |
# A very common pattern in Elixir is to define a method that pipes the first | |
# argument through a series of transformations, for example here is some actual | |
# Elixir code I just wrote. | |
@spec encode(String.t) :: String.t | |
def encode(plaintext) do | |
plaintext | |
|> encipher | |
|> chunk | |
end |