View gist:1044951
This file contains 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
" include other paths to look for config files | |
:set runtimepath=~/.vim,$VIMRUNTIME | |
" some basic options | |
:set nocompatible | |
:set showmatch | |
:set nowrap | |
:set ruler | |
:set showmode | |
:set backspace=2 |
View 20130808024530000-table-time_zones.js
This file contains 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 dbh = require("../migrations"), | |
relationName = "time_zones"; | |
exports.up = function (next) { | |
dbh.schema.createTable( | |
relationName, | |
function (table) { | |
table.string("code", 50).primary(); | |
table.timestamps(); | |
table.integer("utc_offset").notNullable(); |
View base.js
This file contains 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
return Backbone.View.extend( | |
{ | |
_nodes: null, | |
renderCfg: function () { | |
return this._renderCfg || {}; | |
}, | |
renderContext: function () { | |
console.log("views/base::renderContext"); |
View gist:7042658
This file contains 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
user.save( | |
userSaveData, | |
{ | |
success: _.bind(this._registerSuccess, this), | |
error: _.bind(this._registerError, this) | |
} | |
); | |
_registerSuccess: function () { | |
console.log("views/signUp::_registerSuccess"); |
View Base class
This file contains 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
define( | |
[ | |
"backbone", | |
"templates", | |
"underscore" | |
], | |
function (Backbone, templates, _) { | |
"use strict"; | |
var CLASS_EMPTY = "ws-list-empty"; |
View gist:6582785
This file contains 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
PasswordReset.find( | |
{ | |
include: [ | |
User | |
], | |
where: { | |
token: token, | |
"users.email": email, | |
expiresAt: { | |
gte: (new Date()) |
View gist:6393294
This file contains 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
Uri.findAll( | |
{ | |
include: [ | |
{ model: CurrentMetaData, as: "metadata" } | |
], | |
where: { | |
type: revTypeMap[type] | |
} | |
} | |
).then( |
View gist:6321261
This file contains 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
this["JST"]["activity/denied.html"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [2,'>= 1.0.0-rc.3']; | |
helpers = helpers || Handlebars.helpers; data = data || {}; | |
return "<h2>Activity Access Denied</h2>\n"; | |
}); |
View gist:6306715
This file contains 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
if (! DEBUG) { | |
if (! window.console) { | |
window.console = {}; | |
} | |
methods = ["log", "debug", "warn", "info"]; | |
for (i = 0; i < methods.length; i++) { | |
console[methods[i]] = function () {}; | |
} | |
} |
View gist:6174702
This file contains 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
_changeView: function (newView, options) { | |
console.log("app::_changeView"); | |
options = options || {}; | |
options.renderFirst = (typeof options.renderFirst !== "undefined") ? options.renderFirst : true; | |
if (this._currentView !== null && this._currentView === newView) { | |
console.log("app::_changeView - no change needed"); | |
return; | |
} |
NewerOlder