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
| /* Written by @vincentsimard */ | |
| /* | |
| Converts f7u12 faces code into images | |
| See http://www.reddit.com/r/fffffffuuuuuuuuuuuu/comments/ecnd4/every_fffffffuuuuuuuuuuu_face_a_reference_guide for reference | |
| Does not support titles, or any other cool features | |
| Type [/code] to use the face in Talker. | |
| */ | |
| plugin.F7U12Faces = function(matcher){ | |
| this.matcher = matcher; |
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
| var dgram = require('dgram'); | |
| var server = dgram.createSocket('udp4', function (msg, rinfo) { | |
| console.log(msg.toString()); | |
| }); | |
| server.bind(8125); |
| # Deploying chef with capistrano | |
| # Requires a typical chef config layout, i.e. | |
| # cookbooks/ | |
| # nodes/ | |
| # roles/ | |
| # | |
| # Commands: | |
| # configure:<node> - Upload chef cookbooks, run chef-solo | |
| # | |
| # Roles will automatically be added from nodes/*.json. e.g. if you have |
| # Commands to disable all the annoying features in OSX Lion | |
| # Fork if you've got any more ideas! | |
| # NOTE: most of these commands seem to need a restart to work | |
| # Press and hold (i.e. fix key autorepeating) | |
| defaults write -g ApplePressAndHoldEnabled -bool false | |
| # Window animations | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO |
| Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/ | |
| 1.) Open any application | |
| 2.) Press and hold the power button until the slide to shutdown swipe bar appears. | |
| 3.) Release Power button | |
| 4.) Press and hold Home button Lightly | |
| until screen returns to icon screen |
| # WAIT! Do consider that `wait` may not be needed. This article describes | |
| # that reasoning. Please read it and make informed decisions. | |
| # https://www.varvet.com/blog/why-wait_until-was-removed-from-capybara/ | |
| # Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
| describe 'Modal' do | |
| should 'display login errors' do | |
| visit root_path |
| #!/bin/bash | |
| function usage | |
| { | |
| echo "usage: supertail -f file [-bl word1 -m word2 -g word3 -w word4 -bk word5 ...] " | |
| echo "bl=blue, bk=black, g=green, m=magenta, r=red, c=cyan, w=white, y=yellow, etc." | |
| } | |
| ## PayRoll gem | |
| # lib/pay_roll.rb | |
| module PayRoll | |
| class << self | |
| attr_accessor :employee_directory | |
| def config | |
| yield self | |
| end | |
| end |