Skip to content

Instantly share code, notes, and snippets.

View kris-luminar's full-sized avatar

Kris Luminar kris-luminar

  • StudyKIK
  • Kingston, PA
  • 03:18 (UTC -04:00)
View GitHub Profile
@kris-luminar
kris-luminar / env.json
Created March 28, 2012 16:43 — forked from esundahl/env.json
This is a quick and dirty little javascript bookmarklet that I wrote to toggle between different development environments
[{
"environments": [
"site.dev",
"site.staging",
"site.com"
]
}]
@kris-luminar
kris-luminar / toggle_dev_environment.js
Created March 23, 2012 21:01 — forked from esundahl/env.json
toggle_dev_environment
var dev = "dev",
staging = "staging",
production = "production",
url = window.location,
hostname = window.location.hostname;
hostname = hostname.split('.');
if (hostname[1] === dev) {
hostname[1] = staging;
@kris-luminar
kris-luminar / gist:be20aef88e91e7af5816
Last active August 29, 2015 14:13
Iowa Ruby Brigade Regex 1/20/2015
require 'restforce'
require 'faye'
require 'pry'
Restforce.log = true
client = Restforce.new username: '**********************************',
password: '************************',
security_token: '************************',
client_id: '*************************************************************************************',
source "https://rubygems.org"
ruby "2.1.2"
# gem 'sinatra'
gem 'eventmachine'
gem "cookiejar", :git => "https://github.com/MissionCapital/cookiejar.git"
gem "restforce"
gem 'faye', '0.8.9'
gem 'pry'