Skip to content

Instantly share code, notes, and snippets.

View jacqui's full-sized avatar

Jacqui Lough jacqui

View GitHub Profile
@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 / 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
@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
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;
}
export rvm_gemset_create_on_use_flag=1
export rvm_project_rvmrc=1
export rvm_trust_rvmrcs_flag=1
@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"