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 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'), |
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
| // Upcoming DAOFactory concept for sequelizejs | |
| var async = require('async'); | |
| var _ = require('lodash'); | |
| var Klass = function() { | |
| this.bin; | |
| this.primaryKey = 'id'; | |
| this.length = 0; |
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
| 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" |
This file has been truncated, but you can view the full file.
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
| '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.
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
| '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 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
| $ git log | tail -n5 | |
| commit 5e3aa42c84bbd7c82b1d0b595ca13b49d3a6e8bf | |
| Author: James Halliday <mail@substack.net> | |
| Date: Wed Mar 13 15:16:33 2013 -0700 | |
| happstack article | |
| $ git filter-branch --env-filter 'if [ "$GIT_COMMIT" = "5e3aa42c84bbd7c82b1d0b595ca13b49d3a6e8bf" ]; then GIT_AUTHOR_DATE="2009-10-25 09:59:47 UTC"; fi' | |
| Rewrite 85a994a56fc0fae5c9f082b1e2dbb2ee8ee23ceb (7/7) | |
| Ref 'refs/heads/master' was rewritten |
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 data = sequelize.define('NativeDataType', { | |
| aBoolean3: Sequelize.BOOLEAN, | |
| aBoolean4: {type: Sequelize.BOOLEAN} | |
| }) | |
| console.log(data); |
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 ruby | |
| # Made by Pieter de Bie <frimmirf@gmail.com> | |
| # Based on a "Pastie" task by someone | |
| require "tempfile" | |
| GIST_URL = 'http://gist.github.com/gists' | |
| GIST_LOGIN_URL = 'https://gist.github.com/session' | |
| USERNAME = "martinisoft" | |
| TOKEN = "6ef8395fecf207165f1a82178ae1b984" |
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
| /* | |
| --- | |
| name: guilloche | |
| script: guilloche.js | |
| description: guilloche | |
| provides: [Guilloche] | |
| ... | |
| */ |
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 | |
| PROJ_NAME="" | |
| PROJ_GIT_DIR="" | |
| PROJ_DIR="" | |
| PROJ_ROOT="" | |
| PROJ_GIT_ROOT="" | |
| PWD=$(pwd) | |
| function set_config_vars () { |