is a Rails 3.1 app running on Ruby 1.9.2 and deployed to Heroku's Cedar stack. It has an RSpec and Cucumber test suite which should be run before commiting to the master branch.
Create aliases:
| #!/usr/bin/env ruby | |
| # | |
| # Before we start, make sure you have Essex support in Fog | |
| # | |
| # Essex support has not been merged into upstream Fog so you'll need | |
| # a custom ruby fog build to run through the examples | |
| # | |
| require 'fog' | |
| require 'pp' | |
| require 'highline/import' |
| <% flash.each do |type, message| %> | |
| <div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
| <button class="close" data-dismiss="alert">×</button> | |
| <%= message %> | |
| </div> | |
| <% end %> |
| var geocoder = new google.maps.Geocoder(); | |
| $("#address").autocomplete({ | |
| //This bit uses the geocoder to fetch address values | |
| source: function(request, response) { | |
| geocoder.geocode( {'address': request.term }, function(results, status) { | |
| response($.map(results, function(item) { | |
| return { | |
| label: item.formatted_address, | |
| value: item.formatted_address, |
| class Player | |
| attr_accessor :warrior | |
| def initialize | |
| @old_health = 20 | |
| end | |
| def play_turn(warrior) | |
| @warrior = warrior |
| require 'bindata' | |
| class CustomProtocol < BinData::Record | |
| endian :big | |
| stringz :command_word | |
| uint8 :op1 | |
| uint8 :op2 | |
| end |
| cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/ | |
| git clone git://github.com/wbond/sublime_package_control.git Package\ Control | |
| cd Package\ Control | |
| git checkout python3 | |
| # restart Sublime Text 3 and you should have Package Control working |
| var redis = require("redis") | |
| , subscriber = redis.createClient() | |
| , publisher = redis.createClient(); | |
| subscriber.on("message", function(channel, message) { | |
| console.log("Message '" + message + "' on channel '" + channel + "' arrived!") | |
| }); | |
| subscriber.subscribe("test"); |