most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
var pubsub = {}; | |
(function(q) { | |
var topics = {}, subUid = -1; | |
q.subscribe = function(topic, func) { | |
if (!topics[topic]) { | |
topics[topic] = []; | |
} | |
var token = (++subUid).toString(); | |
topics[topic].push({ | |
token: token, |
// Example of creating a Name Spaced object in javascript inspired by: | |
// http://stackoverflow.com/questions/881515/how-do-i-declare-a-namespace-in-javascript | |
// Jaco Pretorius: http://stackoverflow.com/users/121531/jaco-pretorius | |
(function( skillet, $, undefined ) { | |
//Private Property | |
var isHot = true; | |
//Public Property | |
skillet.ingredient = "Bacon Strips"; |
(function (ko, handlers, unwrap, extend) { | |
"use strict"; | |
extend(handlers, { | |
stopBubble: { | |
init: function(element) { | |
ko.utils.registerEventHandler(element, "click", function(event) { | |
event.stopPropagation(); | |
}); | |
} | |
}, |