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
define({ | |
forceChoke: function() { | |
}, | |
forceLighting: function() { | |
}, | |
forceRun: function() { | |
} |
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 express = require(' express'); | |
var app = express(); | |
app.configure(function() { | |
app.set(' view engine', 'jade'); | |
app.use(express.static(__dirname + '/ public')); | |
}); | |
app.get('/', function(req, res) { | |
res.render(" index.jade", { | |
layout: 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 conn = new Mongo(); | |
var db = conn.getDB("test"); | |
var myCursor = db.images.find(); | |
myCursor.forEach( | |
function(myDoc) { | |
// print( "images: " + tojson(myDoc) ); | |
var myAlbum = db.albums.findOne( { "images": myDoc._id } ); |
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
/* Simple JavaScript Inheritance | |
* By John Resig http://ejohn.org/ | |
* MIT Licensed. | |
* Usage exmaples: http://ejohn.org/blog/simple-javascript-inheritance/ | |
*/ | |
// Inspired by base2 and Prototype | |
(function(){ | |
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; | |
// The base Class implementation (does nothing) | |
this.Class = function(){}; |
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
@import "compass/utilities/sprites/base"; | |
$icons: sprite-map("images/icons/*.png", $layout: smart); | |
[class^="icon-"] { | |
display: inline-block; | |
background: $icons; | |
} | |
@each $i in sprite_names($icons) { |
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
(?<=<h2>).+(?=</h2>) |
NewerOlder