Skip to content

Instantly share code, notes, and snippets.

View jacobb's full-sized avatar

Jacob Burch-Hill jacobb

View GitHub Profile
@bryanveloso
bryanveloso / brew-services.rb
Created December 8, 2011 09:39 — forked from lwe/brew-services.rb
External script for homebrew to simplify starting services via launchctl, out of the box support for any formula which implements #startup_plist. (This version fixes the deprecation warning raised on Formula.resolve_alias.)
#!/usr/bin/env ruby -w
# brew-services(1) - Easily start and stop formulas via launchctl
# ===============================================================
#
# ## SYNOPSIS
#
# [<sudo>] `brew services` `list`<br>
# [<sudo>] `brew services` `restart` <formula><br>
# [<sudo>] `brew services` `start` <formula> [<plist>]<br>
@jacobb
jacobb / key_bindings.json
Created August 30, 2012 19:15
sublimetext 2 conf
[
{ "keys": ["ctrl+f"], "command": "indentxml" },
{ "keys": ["super+k", "super+b"], "command": "toggle_side_bar" },
{
"keys": ["super+shift+2"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
@ericflo
ericflo / undo.js
Last active September 15, 2016 09:31
Adds undo capabilities into your React.js component.
var UndoMixin = {
getInitialState: function() {
return {
undo: []
};
},
handleUndo: function() {
if (this.state.undo.length === 0) {
return;
@alej0varas
alej0varas / hallocolorpicker.js
Created August 20, 2014 14:23
hallo.js color picker plugin
// hallo colorpicker plugin
// (c) 2014 Alejandro Varas
// Based on https://github.com/25th-floor/hallo-simplecolorpicker-plugin
// hallocolorpicker may be freely distributed under the MIT license
(function(jQuery) {
return jQuery.widget("IKS.hallocolorpicker", {
colorElement : null,
options: {
uuid: '',

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.