Skip to content

Instantly share code, notes, and snippets.

View jacqui's full-sized avatar

Jacqui Lough jacqui

View GitHub Profile
@jacqui
jacqui / earnings.json
Created February 15, 2013 21:29
Scraped from the Bureau of Labor Statistics "Labor Force Statistics from the Current Population Survey" http://www.bls.gov/cps/cpsaat39.htm
[{"female_workers":"45,462","total_workers":"102,749","male_earnings":"$854","male_workers":"57,286","female_earnings":"$691","total_earnings":"$768","label":"Total, full-time wage and salary workers"},{"label":""},{"female_workers":"21,059","total_workers":"40,984","male_earnings":"1,328","male_workers":"19,926","female_earnings":"951","total_earnings":"1,108","label":"Management, professional, and related occupations"},{"female_workers":"7,869","total_workers":"16,991","male_earnings":"1,387","male_workers":"9,121","female_earnings":"993","total_earnings":"1,171","label":"Management, business, and financial operations occupations"},{"female_workers":"4,765","total_workers":"11,547","male_earnings":"1,428","male_workers":"6,783","female_earnings":"1,036","total_earnings":"1,248","label":"Management occupations"},{"female_workers":"265","total_workers":"1,004","male_earnings":"2,275","male_workers":"739","female_earnings":"1,730","total_earnings":"2,060","label":"Chief executives"},{"female_workers":"278","to
@jacqui
jacqui / snow conditions
Created February 14, 2013 03:36
Possible snow conditions in the ODF for Sochi 2014
Compact
Fast
Fine grained
Granular
Grip
Hard
Hard packed
Hard packed variable
Heavy
Icy
@jacqui
jacqui / ruby18_bin_git-clog
Created October 25, 2012 12:28
Git changelog helper, two versions, two hash styles (colon vs rocket)
#!/usr/bin/env ruby
# ruby 1.8 hash (rocket) syntax
# this version goes out to @A_L and all the => homies
# Usage:
# git clog # prints
# git clog -w # writes
#
# https://gist.github.com/2880525
@jacqui
jacqui / git-clog
Created October 25, 2012 12:13 — forked from rstacruz/git-clog
Git changelog helper
#!/usr/bin/env ruby
# Usage:
# git clog # prints
# git clog -w # writes
#
# https://gist.github.com/2880525
module Clog
extend self
execute "gemrc" do
action :run
command "echo 'gem: --no-ri --no-rdoc' > /root/.gemrc"
end
@jacqui
jacqui / live-admin-me.js
Created July 28, 2012 08:17
switch to live admin
var url = window.location.href;
var matched = url.match(/http:\/\/(.*?)\//);
if (matched != null) {
var current_host = matched[1];
var admin_url = url.replace(current_host, 'thegames.nytsyn.com');
window.location.href = admin_url;
}
@jacqui
jacqui / localhost-me.js
Created May 10, 2012 23:24
switch current url to localhost:3000 (.nytimes.com version)
var url = window.location.href;
var matched = url.match(/http:\/\/(.*?)\//);
if (matched != null) {
var current_host = matched[1];
var local_url = url.replace(current_host, 'localhost.nytimes.com:3000');
window.location.href = local_url;
}
@jacqui
jacqui / localhost-3000-me.js
Created May 10, 2012 23:14
switch current url to localhost:3000
var url = window.location.href;
var matched = url.match(/http:\/\/(.*?)\//);
if (matched != null) {
var current_host = matched[1];
var local_url = url.replace(current_host, 'localhost:3000');
window.location.href = local_url;
}
@jacqui
jacqui / setup_api.rb
Created January 14, 2012 15:59
create a file in config/initializers/ called setup_api.rb
include CampaignCash
Base.api_key = "YOUR API KEY"