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
app.get('/:lang/:comparison', index.selectLang | |
, comparison.parseRivalNames | |
, profile.start('db') | |
, comparison.loadRivals | |
, comparison.loadEmbedded | |
, comparison.calculateRivalProperties | |
, comparison.loadSnippets | |
, comparison.loadCategories | |
, profile.end('db') | |
, comparison.choosePictures |
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
node_modules |
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 mongoose = require('mongoose'); | |
// TODO: Take schema out so we can add methods to it | |
Document = module.exports.Document = | |
mongoose.model('Document', mongoose.Schema({ | |
title: String, | |
text: String, | |
tags: [String], | |
type: { type: String, default: 'markdown' }, | |
createdAt: { type: Date, default: Date.now } |
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
node_modules |
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
node_modules |
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
node_modules |
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
node_modules |
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 array = []; | |
for (var i = 0; i < 10000; i += 1) { | |
array = array.concat(['test']); | |
} | |
var buffer = new Buffer(array); |
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 url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css'); |
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
#!/bin/sh | |
# Chapters | |
for chap in * | |
do | |
cd "$chap" | |
chapterFile="$chap".mp3 | |
tmp=tmp.mp3 | |
# Files | |
for file in *.mp3 |