Skip to content

Instantly share code, notes, and snippets.

View wholypantalones's full-sized avatar

Jason Dare wholypantalones

View GitHub Profile
@wholypantalones
wholypantalones / KC60-Map.kbd.json
Last active September 13, 2016 00:14 — forked from arkhaen/KC60-Map.kbd.json
KC60 Map
[
{
"name": "KC60 Map"
},
[
"Esc",
"!\n1",
"@\n2",
"#\n3",
"$\n4",
// Given a query string "?to=email&why=because&first=John&Last=smith"
// getUrlVar("to") will return "email"
// getUrlVar("last") will return "smith"
// Slightly more concise and improved version based on http://www.jquery4u.com/snippets/url-parameters-jquery/
function getUrlVar(key){
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search);
return result && unescape(result[1]) || "";
}
@wholypantalones
wholypantalones / log.Wrapper.js
Created November 27, 2012 16:29 — forked from cointilt/log.Wrapper.js
Log Wrapper
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
if(this.console){
console.log( Array.prototype.slice.call(arguments) );
}
};