Install (copy & paste):
curl -sL \
gist.github.com/raw/1676577/eb66596ba3d69bf1ba9d782ce7ddaaab295cc4db/travis.rb \
> ~/bin/travis && chmod +x ~/bin/travis
gem install hub | tail -2| // | |
| // Place this at the beginning of your node.js program before | |
| // **any and all** require statements. | |
| // | |
| var util = require('util'); | |
| var _warning = util._deprecationWarning; | |
| util._deprecationWarning = function () { | |
| console.trace(); | |
| _warning.apply(util, arguments); |
| var httpProxy = require('http-proxy'); | |
| var server = httpProxy.createServer(function (req, res, proxy) { | |
| // | |
| // Inspect the request | |
| // | |
| console.dir(req); | |
| // | |
| // Proxy to the Remote Location |
There are two limitations in the current broadway implementation which this proposal intends to address:
broadway.App instances are not granular enough. Currently only these events are emitted:
init: Emitted when the App has completed initialization.['plugin', name, 'init']: Emitted when a given plugin has completed initialization.['plugin', name, 'error']: Emitted when there was an error initializing the given plugin.['broadway', 'logged']: Emitted when the application has logged a given messagejitsu to use flatiron. These hooks need to support async actions as well as sync actions.| var flatiron = require('flatiron'), | |
| app = flatiron.app; | |
| console.log('What\'s that in your hand? Look down,'); | |
| app.use(require('./tickets')); | |
| console.log('look up. I HAVE IT. It\'s ' + app.qty + ' TICKETS to ' + app.description + '!'); | |
| console.log('Look again.'); | |
| app.use(require('./diamonds')); |
I urge you to oppose John McCain's new cybersecurity legislation.
I come to this conclusion having read the important provisions of the Bill (for reference: [http://www.gpo.gov/fdsys/pkg/BILLS-112s2105pcs/pdf/BILLS-112s2105pcs.pdf][0]), specifically:
Title VII - Information Sharing
| function toString (obj) { | |
| function _toString (i) { | |
| if (obj[i] === null) return 'null' | |
| if (typeof obj[i] === 'undefined') return 'undefined' | |
| if (obj[i].toString) return obj[i].toString() | |
| else return '' | |
| } | |
| return _toString | |
| } |
| var user = { | |
| validateCredentials: function (username, password) { | |
| return ( | |
| (!(username += '') || username === '') ? { error: "No Username Given.", field: 'name' } | |
| : (!(username += '') || password === '') ? { error: "No Password Given.", field: 'pass' } | |
| : (username.length < 3) ? { error: "Username is less than 3 Characters.", field: 'name' } | |
| : (password.length < 4) ? { error: "Password is less than 4 Characters.", field: 'pass' } | |
| : (!/^([a-z0-9-_]+)$/i.test(username)) ? { error: "Username contains invalid characters.", field: 'name' } | |
| : false | |
| ); |