Skip to content

Instantly share code, notes, and snippets.

Avatar

Kris Luminar kris-luminar

  • West Des Moines, IA, United States
View GitHub Profile
@kris-luminar
kris-luminar / env.json
Created Mar 28, 2012 — forked from esundahl/env.json
This is a quick and dirty little javascript bookmarklet that I wrote to toggle between different development environments
View env.json
[{
"environments": [
"site.dev",
"site.staging",
"site.com"
]
}]
@kris-luminar
kris-luminar / toggle_dev_environment.js
Created Mar 23, 2012 — forked from esundahl/env.json
toggle_dev_environment
View toggle_dev_environment.js
var dev = "dev",
staging = "staging",
production = "production",
url = window.location,
hostname = window.location.hostname;
hostname = hostname.split('.');
if (hostname[1] === dev) {
hostname[1] = staging;
You can’t perform that action at this time.