This file contains 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
.icon-foo:before { | |
font-family: 'icons'; | |
content: 'foo' | |
} | |
<span class="icon-foo"></span> |
This file contains 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
;(function(define){define(function(require,exports,module){ | |
//... | |
});})(typeof define=='function'&&define.amd?define | |
:(function(n,w){'use strict';return typeof module=='object'?function(c){ | |
c(require,exports,module);}:function(c){var m={exports:{}};c(function(n){ | |
return w[n];},m.exports,m);w[n]=m.exports;};})('module-name',this)); |
This file contains 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
http://ihswebdesign.com/knowledge-base/bash-completion-git-branch-in-your-prompt-yes/ |
This file contains 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
function prom { | |
local GREEN="\[\033[0;32m\]" | |
local WHITE="\[\033[0m\]" | |
PS1="\w$GREEN\$(__git_ps1)$WHITE \$ " | |
} | |
prom |
This file contains 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
'use strict'; | |
/** | |
* Module Dependencies | |
*/ | |
var raf = require('../device/raf'); | |
/** | |
* Locals |
This file contains 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
View.prototype.fire = function(name) { | |
var args = [].slice.call(arguments, 1); | |
var parent = this.parent; | |
var propagate; | |
var event; | |
if (typeof name === 'object') { | |
name = name.name; | |
event = name.event; | |
} |
This file contains 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
function parents(el, cl) { | |
while ((el = el.parentNode) && !~el.className.indexOf(cl)); | |
return el; | |
} |
This file contains 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 Builder = require('component-builder'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var async = require('async'); | |
var builder = new Builder(__dirname + '/../client/item-view'); | |
builder.use(compileSass); | |
builder.build(function(err, res){ |
This file contains 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-x { | |
background-color: red; | |
} | |
/** | |
* Exposed API | |
*/ | |
@mixin module-x-blue { | |
background-color: blue; |
This file contains 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 commentsSchema = new Schema({ | |
content: { type: String }, | |
_user: { type: Schema.ObjectId, ref: 'users' }, | |
}); | |
//... | |
// Get a comment without populating |