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
| $.fn.html5_placeholder = function() { | |
| var input = $(this); | |
| input.focus(function() { | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { | |
| var input = $(this); | |
| if (input.val() == '' || input.val() == input.attr('placeholder')) { |
| #!/usr/bin/env ruby | |
| # This is a basic deploy script for Heroku apps. | |
| # It provides a structure you can use to expand on | |
| # and add your own prereqs and deploy tasks. | |
| # | |
| # It basically ensures that: | |
| # 1. There are no uncommited files | |
| # 2. You can ssh to github | |
| # 3. You can connect to heroku |
| $(document).ready(function() { | |
| // Create, show, and hide grid toggle | |
| $('body').append('<div id="grid"></div>'); | |
| $('body').append('<a href="#" class="toggle-grid"><span class="show">Show Grid</span><span class="hide">Hide Grid</span></a>'); | |
| $('a.toggle-grid').toggle(function() { | |
| $('#grid').slideDown('fast'); | |
| $('.toggle-grid .hide').show(); | |
| $('.toggle-grid .show').hide(); | |
| }, function() { |
| #!/usr/bin/env ruby | |
| # coding: utf-8 | |
| require 'sinatra' | |
| set :server, 'thin' | |
| set :sessions, true | |
| streams = Hash.new {|k, v| k[v] = [] } | |
| helpers do | |
| def session_id |
| # Usage: redis-cli publish message.achannel hello | |
| require 'sinatra' | |
| require 'redis' | |
| conns = Hash.new {|h, k| h[k] = [] } | |
| Thread.abort_on_exception = true | |
| get '/' do |
| /* 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: ""; |
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
| if (typeof Object.create !== "function") | |
| Object.create = function(o) { | |
| function F() {} | |
| F.prototype = o; | |
| return new F(); | |
| }; | |
| var Model = { | |
| init: function(){ }, | |
| <ul id="members" data-role="listview" data-filter="true"> | |
| <!-- ... more list items ... --> | |
| <li> | |
| <a href="detail.html?id=10"> | |
| <h3>John Resig</h3> | |
| <p><strong>jQuery Core Lead</strong></p> | |
| <p>Boston, United States</p> | |
| </a> | |
| </li> | |
| <!-- ... more list items ... --> |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Eli Perelman http://eliperelman.com | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |