Clone repo:
git clone git://github.com/maccman/juggernaut.git
cd juggernaut
Create Heroku app:
heroku create myapp --stack cedar
heroku addons:add redistogo:nano
git push heroku master
Clone repo:
git clone git://github.com/maccman/juggernaut.git
cd juggernaut
Create Heroku app:
heroku create myapp --stack cedar
heroku addons:add redistogo:nano
git push heroku master
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |
| var nc = require('ncurses'), | |
| ui = require('./src/ui'), | |
| map = require('./src/path-map'), | |
| pf = require('./src/pathfinding'); | |
| nc.colorPair(2, nc.colors.BLACK, 15); | |
| ui.windows.root.bkgd = nc.colorPair(2); | |
| var map = map.createMap(nc.cols, nc.lines, ui.windows.root); |
| javascript:(function() { | |
| if(!window.your_bookmarklet) { | |
| var doc = document, | |
| js = doc.createElement('script'); | |
| js.type = 'text/javascript'; | |
| js.src = 'loader.js'; | |
| js.async = true; |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| /* See http://cl.ly/8KmQ for an example */ | |
| hr { | |
| margin: 15px 0; | |
| position: relative; | |
| border: 1px solid transparent; | |
| .box-shadow(0, 1px, 2px, rgba(0,0,0,0.3)); | |
| &:before, &:after { | |
| content: ""; |
| # Sprinkle setup script for our CI server (Ruby 1.9/Git/PostgreSQL/nginx reverse proxy) | |
| # | |
| package :build_essential do | |
| description 'Build tools' | |
| apt 'build-essential' do | |
| # Update the sources and upgrade the lists before we build essentials | |
| pre :install, ['aptitude update', 'aptitude safe-upgrade', 'aptitude full-upgrade'] | |
| end | |
| end |
| app.get('/help', function(req, res){ | |
| res.send('some help'); | |
| }); | |
| app.get('/search/:query/p:page', function(req, res){ | |
| var query = req.params.query | |
| , page = req.params.page; | |
| res.send('search "' + query + '", page ' + (page || 1)); | |
| }); |
| <?php | |
| namespace CHH; | |
| trait MetaObject | |
| { | |
| protected static $__metaClass; | |
| static function setMetaClass(MetaClass $metaClass) | |
| { |