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
### | |
@object App | |
Main Application File | |
### | |
# Bind jQuery | |
$ = jQuery | |
# App just initializes this class |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<script src="/js/app.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var app = require('App').init(); | |
app.speak('!'); |
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
# deps | |
fs = require('fs') | |
express = require('express') | |
stitch = require('stitch') | |
# express server | |
app = express.createServer() | |
# configure express, /public for index.html |
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
@id = params.id or (-> | |
throw new Error 'id must be defined!' | |
)() |
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
/** | |
* Setup Module with `highlight` filter | |
*/ | |
var JekyllApp = angular.module('JekyllApp', [], function($routeProvider) { | |
}); | |
JekyllApp.filter('highlight', function() { | |
return function(text, filter) { |
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
$route.when('/some/route', { | |
template : 'partials/some/route.html', | |
controller : SomeRouteController | |
}); |
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 child | |
, stdout = '' | |
, stderr = '' | |
, exitCode = 0 | |
, vows = require('vows') | |
, path = require('path') | |
, assert = require('assert') | |
, request = require('request') | |
, spawn = require('child_process').spawn; |
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
$ cd my_project | |
$ touch Makefile |
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 dude = require('./dude'); | |
dude.say('hey bro.'); |
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 app = angular.module('app', [], function($routeProvider) { | |
$routeProvider.when('/welcome', { | |
template : 'partials/welcome.html', | |
controller : WelcomeController | |
}); | |
$routeProvider.otherwise({ | |
redirectTo : '/welcome' | |
}); |