Skip to content

Instantly share code, notes, and snippets.

View adamrights's full-sized avatar

Adam Bedell adamrights

View GitHub Profile
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');
# 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
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"
<!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>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
[ng-cloak] {
display: none;
}
</style>
<script>
/*https://github.com/sgerrand/solarized*/
$base03: #002b36;
$base02: #073642;
$base01: #586e75;
$base00: #657b83;
$base0: #839496;
$base1: #93a1a1;
$base2: #eee8d5;
$base3: #fdf6e3;
/**
* @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:
// .npmignore
.git*
docs/
examples/
support/
test/
testing.js
.DS_Store
coverage.html
lib-cov
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['mocha'],
files: [
'code/*.js',
'test/*.js'
],
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');