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 application_root = __dirname, | |
express = require("express"), | |
path = require("path"), | |
mongoose = require('mongoose'); | |
var app = express.createServer(); | |
// database | |
mongoose.connect('mongodb://localhost/ecomm_database'); |
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
# Bind to development layout script | |
bind D source-file $HOME/script/tmux.dev | |
# Split Pane and run Vim | |
bind V source-file ~/scripts/tmux.vim | |
## improve colors | |
set -g default-terminal "screen-256color" | |
# notify activity on output from hidden windows | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# act like vim |
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(X) from module at path Y | |
1. If X is a core module, | |
a. return the core module | |
b. STOP | |
2. If X begins with './' or '/' or '../' | |
a. LOAD_AS_FILE(Y + X) | |
b. LOAD_AS_DIRECTORY(Y + X) | |
3. LOAD_NODE_MODULES(X, dirname(Y)) | |
4. THROW "not found" |
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 lang="en" ng-app="myApp"> | |
<head> | |
<meta charset="utf-8"> | |
<title>My AngularJS App</title> | |
<link rel="stylesheet" href="css/app.css"/> | |
</head> | |
<body> | |
<ul class="menu"> | |
<li><a href="#/view1">view1</a></li> |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
[ng-cloak] { | |
display: none; | |
} | |
</style> | |
<script> |
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
/*https://github.com/sgerrand/solarized*/ | |
$base03: #002b36; | |
$base02: #073642; | |
$base01: #586e75; | |
$base00: #657b83; | |
$base0: #839496; | |
$base1: #93a1a1; | |
$base2: #eee8d5; | |
$base3: #fdf6e3; |
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
/** | |
* @adamrights fork 09.01.13 | |
* ethanschoonover.com master css file | |
* fold in vim to view only the non html5boilerplate components | |
* | |
* style.css contains a reset, font normalization and some base styles. {{{ | |
* | |
* See html5boilerplate.com for the base css file | |
* Credit is left where credit is due. | |
* Much inspiration was taken from these projects: |
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
// .npmignore | |
.git* | |
docs/ | |
examples/ | |
support/ | |
test/ | |
testing.js | |
.DS_Store | |
coverage.html | |
lib-cov |
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
// karma.conf.js | |
module.exports = function(config) { | |
config.set({ | |
frameworks: ['mocha'], | |
files: [ | |
'code/*.js', | |
'test/*.js' | |
], |
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
module.exports = function (grunt) { | |
'use strict'; | |
grunt.loadNpmTasks('grunt-mocha'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.loadNpmTasks('grunt-fixmyjs'); | |
//grunt.loadNpmTasks('grunt-contrib-requirejs'); | |
grunt.loadNpmTasks('grunt-release'); |