Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
set :application, "SampleApp"
set :repository, "."
set :scm, :none
set :use_sudo, false
set :keep_releases, 5
#Use the copy method which will compress and scp the files
set :deploy_via, :copy
set :main_js, "app.js"
@durango
durango / file.js
Last active December 11, 2015 17:09
// Upcoming DAOFactory concept for sequelizejs
var async = require('async');
var _ = require('lodash');
var Klass = function() {
this.bin;
this.primaryKey = 'id';
this.length = 0;
@durango
durango / app.js
Created December 3, 2012 15:41 — forked from katanacrimson/app.js
nodejs app - expressjs 3.0 + socket.io v9 + passport + redis
var express = require('express'),
passport = require('passport'),
LocalStrategy = require('passport-local').Strategy,
connect = require('connect'),
http = require('http'),
path = require('path'),
util = require('util'),
fs = require('fs'),
redis = require('redis'),
cookie = require('cookie'),
@durango
durango / snap_lines_to_indent_level_command.py
Created November 27, 2012 10:59 — forked from vitaLee/snap_lines_to_indent_level_command.py
SublimeText command for snapping displaced text to indentation
# sample shortcuts
{ "keys": ["ctrl+super+]"], "command": "snap_lines_to_indent_level", "args": { "snap_direction": 1 } },
{ "keys": ["ctrl+super+["], "command": "snap_lines_to_indent_level", "args": { "snap_direction": -1 } }
@durango
durango / index.html
Created November 27, 2012 04:47 — forked from anotherjavadude/index.html
Most simple d3.js stack bar chart from matrix
<!DOCTYPE html>
<html>
<head>
<title>Simple Stack</title>
<script src="http://d3js.org/d3.v2.js"></script>
<style>
svg {
border: solid 1px #ccc;
font: 10px sans-serif;
shape-rendering: crispEdges;
@durango
durango / object-watch.js
Created November 22, 2012 18:21 — forked from eligrey/object-watch.js
object.watch polyfill
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@durango
durango / standards.md
Created November 12, 2012 18:58
Coding Standards for various languages

CODING STANDARDS

This is a list of the various code style guides I've printed out and (try to) abide by. There are endless style guides on the internet, these are just the ones I use wherever possible.


Frontend

@durango
durango / gist:3752407
Created September 19, 2012 21:31
QueryChainer - adding custom classMethods with complex queries [example]
// This is in classMethods:
a_method: function(id, order_id) {
var query1 = s.Utils.format(['query goes here...']);
var query2 = s.Utils.format(['query goes here....']);
return new s.Utils.CustomEventEmitter(function(emitter) {
db.query(query1, null, {raw:true}).success(function(row1){
db.query(query2, null, {raw:true}).success(function(row2){
emitter.emit('success', {results1: row1, results2: row2});
});