(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
/** | |
* Watching | |
* ======== |
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(); |
return Backbone.View.extend( | |
{ | |
_nodes: null, | |
renderCfg: function () { | |
return this._renderCfg || {}; | |
}, | |
renderContext: function () { | |
console.log("views/base::renderContext"); |
_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; | |
} |
Tested in: | |
- [ ] Node.js | |
- [ ] Chrome | |
- [ ] FireFox | |
- [ ] Safari | |
- [ ] IE 11 | |
- [ ] IE 10 | |
- [ ] IE 9 | |
- [ ] IE 8 |
#!/bin/bash | |
# | |
# ssh_attach.sh | |
# | |
# source this file in a .bashrc . | |
# | |
# something like : | |
# | |
# # interactive shell ?? | |
# if [ "$PS1" ]; then |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
/* | |
This is the Node.js file, it will export files directly to | |
`tdp-bundle-min.js` which obviously won't work well for you! | |
This relies on having a YUI_config that can be parsed and | |
passed into Y.Loader. Everything you need should be in this | |
gist, though. You may need to change the path to your | |
YUI_config file (mine is named `bundle.js`). | |
However, it's an easy change, just scroll down and edit it. |
var fs = require("fs") | |
var ssl_options = { | |
key: fs.readFileSync('privatekey.pem'), | |
cert: fs.readFileSync('certificate.pem') | |
}; | |
var port = process.env.PORT || 3000; | |
var express = require('express'); | |
var ejs = require('ejs'); | |
var passport = require('passport') |
YUI.add( | |
"ep-w-work_entry-base", | |
function (Y) { | |
var UI = Y.Widget.UI_SRC; | |
var MODE = "Mode"; | |
var STATUS = "Status"; | |
var WC_AC_SOURCE = "WorkChart/ac?"; | |
var Clazz = Y.namespace("EP.W.WorkEntry").Base = Y.Base.create( |