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
#!/usr/bin/env node | |
var megarepl = require('./megarepl'); | |
// Create a new command used on every megarepl instance | |
megarepl.createCommand('help', 'Show this help dialog', function () { | |
megarepl.output.pipe('some help info'); // pipe to the default output(process.stdout) | |
return undefined; | |
}); |
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
<%- scriptLink('/js/core/core.js', {type: 'text/javascript'}) %> | |
<%- scriptLink('/js/core/models.js', {type: 'text/javascript'}) %> |
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 session.user | |
#somediv | |
h1 some title | |
p= session.user.fname |
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-9 | |
info Uploading: [============================ ] 98% | |
info: Updating app geddy-rt-jade-auth-test | |
info: Activating snapshot 0.0.1-9 for geddy-rt-jade-auth-test | |
info: Starting app geddy-rt-jade-auth-test | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
warn: Error returned from Nodejitsu | |
error: Error: socket hang up | |
error: at createHangUpError (http.js:1264:15) |
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-6 | |
info Uploading: [======================== ] 84% | |
info: Updating app geddy-rt-jade-auth-test | |
info: Activating snapshot 0.0.1-6 for geddy-rt-jade-auth-test | |
info: Starting app geddy-rt-jade-auth-test | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: | |
error: There was an error while attempting to start the app | |
error: Error spawning drone |
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 geddy = require('geddy'); | |
geddy.start({ | |
environment: 'production' | |
}); |
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
!!! | |
html | |
head | |
link(rel='stylesheet', href='/stylesheets/styles.css') | |
block head | |
//- Here you can put some default html if the head block is not defined | |
//- in a extending template | |
//- title= adspace | |
body(bgcolor='#fafaff') |
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 session = res.session.user || {} | |
, flash = res.flash || {}; | |
res.render('search/index', {session: session, flash: flash}); |
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 repl = require('repl') | |
, rl; | |
rl = repl.start({ | |
prompt: '>>> ' | |
, input: process.stdin | |
, output: process.stdout | |
}); | |
rl.on('close', function () { |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |