Opens the subNav block. Should use a transition.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = require("bloody-events").create() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var splice = [].splice | |
, baseClass = { | |
create : function(){ | |
return Object.create(this) | |
}, | |
method : function(name, fn){ | |
Object.defineProperty(this, name, { | |
writable : true, | |
configurable : true, | |
enumerable : false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var glurnt = require("gulp") | |
, uglify = require("gulp-uglify") | |
glurnt.task("k", function(){ | |
return glurnt.src("foo/**") | |
.pipe(uglify()) | |
.pipe(glurnt.dest("dist/foo")) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hodor hodor (hodor{Hodor}, hodor{Hodor}) | |
hodor({hodor}, {hodor})[hodor << hodor] | |
=> hodor!hodor | |
hodor!() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require("assert") | |
describe("my-module", function(){ | |
it("should work", function(done){ | |
assert.equal("foo", "foo") | |
done() | |
}) | |
it("should respect type", function(done){ | |
assert.notStrictEqual("1", 1) | |
done() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/jonathantneal/polyfill/blob/master/source/Array.prototype.reduce.js | |
// Array.prototype.reduce | |
Array.prototype.reduce = function reduce(callback, initialValue) { | |
var array = this, previousValue = initialValue || 0; | |
for (var index = 0, length = array.length; index < length; ++index) { | |
previousValue = callback.call(window, previousValue, array[index], index, array); | |
} | |
return previousValue; |