Skip to content

Instantly share code, notes, and snippets.

View larzconwell's full-sized avatar

Larz Conwell larzconwell

View GitHub Profile
@larzconwell
larzconwell / gist:4470370
Last active December 10, 2015 17:48
Handle asset compiling in Geddy, temp solution
/*
* Simple asset compiler for Geddy, should be okay to use in production as it
* creates on init, and only updates when files change.
* (though it would waste resources as it still watches the dirs)
*
* To use do the following in your shell:
* mkdir -p app/assets/{css,js}
* touch config/after_start.js
*
* after that just copy these contents into config/after_start.js
shopt -e nocaseglob
set -e
clear
#
# Variables
#
GoVersion="1.0.3"
RedisVersion="2.6.7"
# These $(pkg-config) commands don't expand when building objects and binaries
CFLAGS=-std=c99 -Wall -g $(pkg-config --cflags apr-1 apr-util-1)
LDFLAGS=$(pkg-config --libs apr-1 apr-util-1)
whatever: bstrlib.o
#!/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-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
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)
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')