a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| heroku addons:add pgbackups --remote staging | |
| heroku addons:add pgbackups --remote production | |
| heroku pgbackups:capture --remote production | |
| heroku pgbackups:restore DATABASE `heroku pgbackups:url --remote production` --remote staging |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |
| <% if @user.errors.any? %> | |
| <div id="errorExplanation"> | |
| <h2><%= pluralize(@user.errors.count, "error") %> prohibited this record from being saved:</h2> | |
| <ul> | |
| <% @user.errors.full_messages.each do |msg| %> | |
| <li><%= msg %></li> | |
| <% end %> | |
| </ul> | |
| </div> | |
| <% end %> |
| var Job = { | |
| data : [ | |
| "We are glad to see you here. This site is dedicated to", | |
| "poetry and to the people who make poetry possible", | |
| "poets and their readers. FamousPoetsAndPoems.com is", | |
| "a free poetry site. On our site you can find a large", | |
| "collection of poems and quotes from over 631 poets", | |
| "Read and Enjoy Poetry", | |
| "I, too, sing America", |
| require 'rubygems' | |
| require 'james' | |
| # This is a very simple James example for MacRuby. | |
| # | |
| # James is a voice controlled butler: | |
| # http://github.com/floere/james | |
| # | |
| # Run using: | |
| # 1. gem install james |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
| // Copyright (c) 2011 Eloy Durán <[email protected]> | |
| // Available under the MIT license: http://www.opensource.org/licenses/mit-license.php | |
| #import <objc/message.h> | |
| @interface FTAccessibleActionSheet : UIActionSheet | |
| - (void)copyAccessibilityMetadataFrom:(NSString *)title toControl:(UIView *)control; | |
| @end | |
| @implementation FTAccessibleActionSheet |
| function set_window_and_tab_title | |
| { | |
| local title="$1" | |
| if [[ -z "$title" ]]; then | |
| title="root" | |
| fi | |
| local tmpdir=~/Library/Caches/${FUNCNAME}_temp | |
| local cmdfile="$tmpdir/$title" |