Skip to content

Instantly share code, notes, and snippets.

View larzconwell's full-sized avatar

Larz Conwell larzconwell

View GitHub Profile
#!/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;
});
<%- scriptLink('/js/core/core.js', {type: 'text/javascript'}) %>
<%- scriptLink('/js/core/models.js', {type: 'text/javascript'}) %>
if session.user
#somediv
h1 some title
p= session.user.fname
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)
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
var geddy = require('geddy');
geddy.start({
environment: 'production'
});
!!!
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')
var session = res.session.user || {}
, flash = res.flash || {};
res.render('search/index', {session: session, flash: flash});
var repl = require('repl')
, rl;
rl = repl.start({
prompt: '>>> '
, input: process.stdin
, output: process.stdout
});
rl.on('close', function () {
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"