Skip to content

Instantly share code, notes, and snippets.

View joelcdoyle's full-sized avatar

Joel Doyle joelcdoyle

  • Little Rock, Arkansas USA
View GitHub Profile
@kalinchernev
kalinchernev / countries
Created October 6, 2014 09:42
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria
@colingourlay
colingourlay / example.js
Last active October 22, 2021 15:16
Lodash / Underscore sort object keys. Like _.sortBy(), but on keys instead of values, returning an object, not an array. Defaults to alphanumeric sort.
var obj = {b: 3, c: 2, a: 1};
_.sortKeysBy(obj);
// {a: 1, b: 3, c: 2}
_.sortKeysBy(obj, function (value, key) {
return value;
});
// {a: 1, c: 2, b: 3}
@cheeaun
cheeaun / sonos-hipchat.js
Last active August 4, 2016 17:25
Sonos-2-HipChat notification node.js script
npm install sonos
npm install git://github.com/balbeko/node-hipchat.git