Skip to content

Instantly share code, notes, and snippets.

View yrgoldteeth's full-sized avatar

Nicholas Fine yrgoldteeth

View GitHub Profile
[{"title":"Los Angeles County","points":[[0,1549,3,3027,48,13481,22],[101,2271,5,1878,44,64973,23]],"ticks":["Veterans Affairs","Small Business Administration","Social Security Administration","Health and Human Services","Transportation","Education","Homeland Security"],"colors":["#4bb2c5","#c5b47f","#33CC99"],"labels":[2009,2010],"series":[{"label":2009},{"label":2010}]},{"title":"San Francisco County","points":[[0,124,0,1694,10,1765,6],[20,219,0,1051,9,7631,3]],"ticks":["Veterans Affairs","Small Business Administration","Social Security Administration","Health and Human Services","Transportation","Education","Homeland Security"],"colors":["#4bb2c5","#c5b47f","#33CC99"],"labels":[2009,2010],"series":[{"label":2009},{"label":2010}]}]
multi_naics
[{"x":0.0,"y":"0.844013892896046346","z":2.7594196737383005,"label":{"color":"#4bb2c5","label":"32 - Manufacturing","actual_count":"7.6143969358139902"},"tick":[],"title":"Birmingham-Hoover, AL "},{"x":0.0,"y":"0.823497972850027981","z":1.782890382445083,"label":{"color":"#c5b47f","label":"48 - Transportation and Warehousing","actual_count":"3.1786981158151748"},"tick":[]},{"x":4.864625595813935,"y":"2.790389525082433877","z":1.327731972864289,"label":{"color":"#33CC99","label":"22 - Utilities","actual_count":"1.762872191766097"},"tick":[]},{"x":0.0,"y":"0.823497972850027981","z":1.782890382445083,"label":{"color":"#EAA228","label":"49 - Transportation and Warehousing","actual_count":"3.1786981158151748"},"tick":[]},{"x":0.3889720180320601,"y":"1.086846281536545067","z":2.1961079518966002,"label":{"color":"#579575","label":"23 - Construction","actual_count":"4.8228901363834795"},"tick":[]}]
# default.gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator
actionmailer -v2.1.0
actionpack -v2.1.0
activerecord -v2.1.0
activeresource -v2.1.0
activesupport -v2.1.0
Ascii85 -v1.0.1
builder -v3.0.0
collectiveidea-delayed_job -v1.8.2
columnize -v0.3.4
require 'sinatra'
set :public, Proc.new { File.join(root, '_site')}
# This before filter ensures that your pages are only ever served
# once (per deploy) by Sinatra, and then by Varnish after that
before do
response.headers['Cache-Control'] = 'public, max-age=31557600' # 1 year
end
clear Lock
keycode 0x42 = Escape
ISOTOPE_SUBSCRIPTIONS_BRAINTREE_ENVIRONMENT=development
ISOTOPE_SUBSCRIPTIONS_BRAINTREE_MERCHANT_ID=<id>
ISOTOPE_SUBSCRIPTIONS_BRAINTREE_PUBLIC_KEY=<key>
ISOTOPE_SUBSCRIPTIONS_BRAINTREE_PRIVATE_KEY=<key>
@yrgoldteeth
yrgoldteeth / datum.rb
Created May 23, 2012 15:14
SuperMemo2 Repetition Spacing
class Datum < ActiveRecord::Base
has_many :repetition_intervals
has_many :difficulty_factors
has_many :datum_responses
after_create :initial_datum_setup
def recent_repetition_interval
repetition_intervals.last
end
@yrgoldteeth
yrgoldteeth / benchmark.rb
Created October 25, 2012 21:19 — forked from panthomakos/benchmark.rb
Benchmark Your Bundle
#!/usr/bin/env ruby
require 'benchmark'
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
/^Missing API definition file in (.+)$/i,
/^cannot load such file -- (.+)$/i,
]
PACKAGES = %w( build-essential
wget
vim
git-core
curl
bison
openssl
libreadline6
libreadline6-dev
zlib1g
#!/usr/bin/env bash
# This is my setup for Vim. It assumes you're using a unixy system that has
# vim already installed as well as bash, git and curl. This will install the janus
# set of plugins as well as create my specific vim customizations
# Cat the text of my .vimrc.after file
function vimrcafter()
{
cat<<EOF