Skip to content

Instantly share code, notes, and snippets.

View codelahoma's full-sized avatar

Rod Knowlton codelahoma

View GitHub Profile
@codelahoma
codelahoma / index.js
Created January 20, 2015 21:38
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Rebuild to run it on the right
var _ = require('lodash');
var talk = function( phraseObj ) {
var obj = _.cloneDeep(phraseObj);
return function() {
console.log(obj.phrase);
};
};

Like so: var s = `abc`;

@codelahoma
codelahoma / undermore.js
Last active August 29, 2015 13:57
A little utility to extend underscore with a couple of methods I wanted, `isCollection` and `complement`, as well as `isNot*` functions to match the `is*` functions.
module.exports = (function () {
var _ = require('underscore');
var isCollection = function(item) {
return (_.isObject(item) || _.isArray(item) || _.isArguments(item));
};
var complement = function(fn) {
return function() {
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@codelahoma
codelahoma / tmux.cheat
Created January 4, 2014 20:05 — forked from afair/tmux.cheat
0
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^a w
New -s <session> Create ^a c
Attach att -t <session> Rename ^a , <name>
Rename rename-session -t <old> <new> Last ^a l (lower-L)
Kill kill-session -t <session> Close ^a &
@codelahoma
codelahoma / 0_reuse_code.js
Created October 28, 2013 18:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@codelahoma
codelahoma / iphone-view-src.md
Last active December 26, 2015 05:49
iPhone View Source Bookmarklets
@codelahoma
codelahoma / everything-david-nolen-mentioned.markdown
Last active March 29, 2021 19:13
Quick and dirty bibliography for David Nolen's Lambda Jam 2013 keynote.

Everything David Nolen Mentioned

When watching David Nolen's excellent Lambda Jam keynote on InfoQ, the references to interesting reading came a little too fast and furious for me to jot down, so I went through the slides and put this gist together.

# moved internal properties to arguments.callee so
# we don't have to worry about name collisions with our
# context.
tco = (fn) ->
(args...) ->
my = arguments.callee
my.recurred = false
my.args = []
@codelahoma
codelahoma / sicp1.coffee.md
Created June 9, 2013 20:27
A SICP of Coffee - A weekend experiment by @codelahoma

A SICP of Coffee

A weekend experiment by @codelahoma

Chapter 1 - Building Abstractions with Procedures

Mostly for grins, and partly to get a feel