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(['handlebars'], function(Handlebars) { | |
this["JST"] = this["JST"] || {}; | |
this["JST"]["book/ListItem"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [4,'>= 1.0.0']; | |
helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; | |
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression; | |
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(['handlebars'], function(Handlebars) { | |
this["JST"] = this["JST"] || {}; | |
this["JST"]["book/ListItem"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [3,'>= 1.0.0-rc.4']; | |
helpers = helpers || Handlebars.helpers; data = data || {}; | |
var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression; | |
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
fs = require 'fs' | |
sprintf = require('sprintf').sprintf | |
Parser = require 'feedparser' | |
if process.argv.length != 3 | |
console.error "Please specify a file to parse" | |
return process.exit 1 | |
fs.writeFileSync 'posts/htaccess', 'RewriteEngine on\n\n' |
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
require.config | |
baseUrl: 'js' | |
paths: | |
'jquery': '../vendor/jquery/jquery.min' | |
'underscore': '../vendor/lodash/dist/lodash.underscore.min' | |
'backbone': '../vendor/backbone/backbone-min' | |
'giraffe': '../vendor/giraffe/dist/backbone.giraffe.min' | |
'jade': '../vendor/jade/runtime.min' | |
'handlebars': '../vendor/handlebars.js/dist/handlebars.runtime' |
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
require './app/config/globals' | |
require(PATHS.config+'/mongoose')() | |
Campaign = require("#{PATHS.models}/Campaign") | |
# CampaignTemplate = require "#{PATHS.models}/CampaignTemplate" | |
async = require 'async' | |
mongoose = require 'mongoose' | |
Schema = mongoose.Schema | |
personSchema = Schema( | |
# _id: Number |
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
#!/usr/bin/env bash | |
ROOT_PW="PassWord" | |
apt-get update | |
### MySQL | |
# install mysql | |
apt-get -y install expect | |
VAR=$(expect -c ' | |
spawn apt-get -y install mysql-server |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.provision :shell, :path => "bootstrap.sh" | |
# config.vm.network :forwarded_port, host: 8888, guest: 80 | |
config.vm.network "private_network", ip: "10.0.0.100" | |
end |
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
<snippet> | |
<!-- Example: Hello, ${1:this} is a ${2:snippet}. --> | |
<content><![CDATA[ | |
React.createClass({ | |
render: function() { | |
return React.DOM.${1:div}({ | |
className: '${2}', | |
children: '${3}' | |
}); | |
} |
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(function(require, exports, module){ | |
var React = require('react'); | |
var Parse = require('parse'); | |
var ReviewSummary = require('components/review-summary'); | |
var ReviewsList = require('components/reviews-list'); | |
var ReviewForm = require('components/review-form'); | |
var Emitter = require('emitter'); | |
var emitter = new Emitter(); | |
var user = Parse.User.current(); |
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 gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
less = require('gulp-less'), | |
mustache = require('gulp-mustache'), | |
clean = require('gulp-clean'); | |
fs = require('fs'); | |
gulp.task('clean', function () { | |
var stream = gulp.src('dist/', {read: false}) | |
.pipe(clean()) |