Skip to content

Instantly share code, notes, and snippets.

View bobjackman's full-sized avatar

Bob Jackman bobjackman

View GitHub Profile

Useful Shortcuts

Sublime Text 2 - (Mac OS X)

Modifier keys used

Symbol Key Name
Command
@bobjackman
bobjackman / handlebars-select-helper.js
Last active March 23, 2016 23:57 — forked from LukeChannings/handlebars-select-helper.js
A select helper for handlebars
Handlebars.registerHelper( 'select-options', function( items, selectedValue, options ) {
// ======== Ensure `items` is Object/Hash
if( items instanceof Array ) {
var temp = {};
for( var i in items ) {
var value = items[i];
temp[value] = value;
}
items = temp;
}