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
/* | |
* 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 |
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
shopt -e nocaseglob | |
set -e | |
clear | |
# | |
# Variables | |
# | |
GoVersion="1.0.3" | |
RedisVersion="2.6.7" |
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
# 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 |
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-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
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
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') |