- Install the
redisgem - Start
subscribe.rbwithruby subscribe.rb, this will not exit - Run
ruby publish.rband you should see the message being received in the output ofsubscribe.rb
Git hooks are not as widely used as they could be, and I believe is because people new to Git don't want to be messing around with Bash scripts or haven't yet discovered how to use them.
I'd like to propose a new tool for creating and managing Git hooks, and versioning them with the project they reside in. This can benefit everyone on a given project as they can implement the same workflow which Git hooks allow. If a hook is related only to a single developer, simply do not check it in.
| # Libs | |
| brew uninstall libxml2 libxslt | |
| brew install libxml2 libxslt | |
| brew link libxml2 libxslt | |
| # Iconv | |
| wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz | |
| tar xvfz libiconv-1.13.1.tar.gz |
If you've used Rails for a while you'll be well familiar with flash messages. Flash objects provide a way to temporarily store information to recall later (usually on the next page render). This can be really useful for performing an action in a controller and then setting a feedback message to show the user during the next action.
We've done a lot of work with EmberJS lately, and we needed this functionality to feedback model saves to the user. There are already a wide variety of solutions out there, including the awesome Growl-esque notifications by Aaron Haurwitz, but for one of our smaller projects we wanted something simpler.
We're already using Foundation for it's excellent grid system, so we wanted to re-purpose the alert component into Ember JS flash object.
You can view the complete demo here, what follows is a break down of each area. Please note that this demo
| RoutingTest::Application.routes.draw do | |
| get "404", :to => "errors#show", :code => 404, :as => :not_found | |
| get "422", :to => "errors#show", :code => 422, :as => :unprocessible_entity | |
| get "500", :to => "errors#show", :code => 500, :as => :server_error | |
| end |
| function gemo(){ | |
| subl `bundle show $1` | |
| } |
| export CFLAGS=-Wno-error=shorten-64-to-32 | |
| export CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` | |
| export RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` | |
| rbenv install 2.0.0-p0 |
| module Dart | |
| module Rails | |
| class Railtie < ::Rails::Engine | |
| initializer :setup_dart_rails do |app| | |
| app.assets.register_engine '.dart', Dart::Rails::Template | |
| end | |
| end | |
| end |
| function Bit(a, b) { | |
| this.a = a; | |
| this.b = b; | |
| } | |
| function construct() { | |
| var args = Array.prototype.splice.call(arguments, 0); | |
| var fn = args.shift(); | |
| function F() { |