Skip to content

Instantly share code, notes, and snippets.

View aaronshaf's full-sized avatar

Aaron Shafovaloff aaronshaf

View GitHub Profile
@aaronshaf
aaronshaf / browser-release-history.md
Last active August 29, 2015 13:56
Browser Release History and Next Version ETA
-2 -1 Current +1 ETA
IE 9
Mar 14, 2011
10
Sep 4, 2012
11
Oct 17, 2013
12
~Oct 2014
Firefox 25
Oct 29, 2013
26
Dec 10, 2013
27
Feb 4, 2014
28
Mar 18, 2014
Firefox ESR 10
Jan 31, 2012
17
Nov 20, 2012
24
Sep 17, 2013
32
Sep 2, 2014
Chrome 30
Oct 1, 2013
31
Nov 14, 2013
32
Feb 4, 2014
33
Mar 2014
Safari 5Jun 7, 2011 6Jul 25, 2012 7Oct 22, 2013 8~Jul 2014
@aaronshaf
aaronshaf / gist:7862132
Created December 8, 2013 18:53
OSIS Bible Book Abbreviations
var osisBookAbbreviations = [
'Gen','Exod','Lev','Nuv','Deut',
'Josh','Judg','Ruth','1Sam','2Sam','1Kgs','2Kgs','1Chr','2Chr','Ezra','Neh','Esth',
'Job','Ps','Prov','Eccl','Song',
'Isa','Jer','Lam','Ezek',
'Dan','Hos','Joel','Amos','Obad','Jonah','Mic','Nah','Hab','Zeph','Hag','Zech','Mal',
'Matt','Mark','Luke','John',
'Acts','Rom','1Cor','2Cor',
'Gal','Eph','Phil','Col',
'1Thess','2Thess','1Tim','2Tim','Titus','Phlm',
@aaronshaf
aaronshaf / gist:7859691
Created December 8, 2013 16:24
bible data formatting
  • OSIS abbreviation for book
  • for both chapter and verse: 0-padded integer, width of 3
@aaronshaf
aaronshaf / gist:7809953
Last active December 30, 2015 09:29
Markup and style guidelines

Themes

  • .ic-prefixed, .theme-suffixed
  • .ic-standard-theme

Apps

  • namespaced with custom element, because it fundamentally describes content
  • ic-prefixed, app-suffixed
  • example: ic-modules-app
@aaronshaf
aaronshaf / gist:7782728
Created December 4, 2013 05:17
Bible book abbreviation conversion (to OSIS)
{
"Ge": "Gen",
"Ex": "Exod",
"Le": "Lev",
"Nu": "Num",
"Dt": "Deut",
"Jos": "Josh",
"Jud": "Jude",
"Ru": "Ruth",
"1Sa": "1Sam",
@aaronshaf
aaronshaf / gist:7773502
Created December 3, 2013 17:27
node sync example
// where User.find is another generator function, or is a promise
// assumes: https://github.com/visionmedia/co
function get(req, res) {
co(function *() {
var users = yield User.find(req.params);
// do stuff with users...
// do more stuff...
res.json({
git remote add upstream [yadda.git]
git pull --rebase upstream master
@aaronshaf
aaronshaf / gist:7669999
Last active December 29, 2015 12:19
The new pattern for writing async code with promises and ES6 generators?
function foo(callback) {
Q.spawn(function*() {
try {
var result1 = yield foo(); //returns a promise
var result2 = yield baz(result1);
callback(null,result2);
} catch(err) {
callback(err)
}
});
@aaronshaf
aaronshaf / gist:7610617
Last active June 29, 2022 13:24
flexbox boilerplate
.flex {
display: -webkit-flex;
display: flex;
}
.flex-row {
-webkit-flex-direction: row;
flex-direction: row;
}