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 Profile = new mongoose.Schema({ | |
// ... properties all around this omitted | |
fixed : { | |
displayname: { type: String }, | |
birthday: { type: Date } | |
} | |
}, {strict: true, minimize: false}); | |
// ...used findOne() to retrieve `req.profile` |
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
```shell | |
remote: npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 | |
remote: npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2 | |
remote: npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 | |
remote: npm http 304 https://registry.npmjs.org/ws | |
remote: npm ERR! git checkout master fatal: Not a git repository: '.' | |
remote: | |
remote: npm ERR! Error: `git "checkout" "master"` failed with 128 | |
remote: npm ERR! at ChildProcess.<anonymous> (/home/prod_web1/local/lib/node_modules/npm/lib/utils/exec.js:58:20) | |
remote: npm ERR! at ChildProcess.emit (events.js:70:17) |
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
# make rbenv work | |
eval "$(rbenv init -)" | |
# set up useful alias | |
alias ll='ls -la' | |
# tell ls to be colorful | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad |
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
-- Doesn't work (returns affiliation = null): | |
SELECT dating.*, | |
CASE WHEN dating.traditional = choices.id AND choices.cat = 'trad' THEN choices.choice END as affiliation | |
FROM dating, choices | |
LIMIT 1 | |
-- Works: | |
SELECT dating.*, choices.choice as affiliation |
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 request = require('superagent'); | |
var base = 'http://eadoyle.tumblr.com/page/'; | |
for (var i = 0; i <= 97; i++) { | |
tryPage(base + i); | |
} | |
function tryPage(url) { | |
request.get(url, function(res) { |
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
~/work/boilerplate2 (master) $ npm cache clean | |
~/work/boilerplate2 (master) $ rm -rf node_modules | |
~/work/boilerplate2 (master) $ npm install | |
npm ERR! cb() never called! | |
npm ERR! not ok code 0 | |
~/work/boilerplate2 (master) $ npm -v | |
1.1.65 | |
~/work/boilerplate2 (master) $ node -v | |
v0.8.13 |
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
info: Creating snapshot 0.0.1-1 | |
info Uploading: [== ] 9% | |
info: Updating app node-components-test | |
info: Activating snapshot 0.0.1-1 for node-components-test | |
info: Starting app node-components-test | |
error: Error running command deploy | |
error: socket hang up | |
info: | |
jitsu's client request timed out before the server could respond | |
info: This error may be due to network connection problems |
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
{ | |
"name": "node-components-test", | |
"version": "0.0.1-4", | |
"author": "Hunter Loftis <[email protected]>", | |
"subdomain": "components", | |
"engines": { | |
"node": "0.8.x" | |
}, | |
"dependencies": { | |
"express": "3.0.0rc2", |
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
{ | |
"name": "node-components-test", | |
"version": "0.0.1-5", | |
"author": "Hunter Loftis <[email protected]>", | |
"subdomain": "components", | |
"engines": { | |
"node": "0.8.x" | |
}, | |
"dependencies": { | |
"express": "3.0.0rc2", |
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
~/work/boilerplate2 (master *) $ jitsu deploy | |
info: Welcome to Nodejitsu hunterloftis | |
info: jitsu v0.10.2, node v0.8.11 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node server.js | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/hunter/work/boilerplate2/package.json | |
warn: Using '*' as a version for dependencies may eventually cause issues |