rails new my_app --rc=template.rc -m template.rb
| class EventCell < UITableViewCell | |
| IDENTIFIER = 'EventCell' | |
| PADDING = 10 | |
| LEFT_MARGIN = 40 | |
| RIGHT_MARGIN = 20 | |
| attr_reader :event | |
| def initWithStyle(style, reuseIdentifier: reuse_identifier) | |
| super.tap do |cell| |
| #!/bin/sh | |
| # Copyright (C) Pierre d'Herbemont, 2010 | |
| # Copyright (C) Felix Paul Kühne, 2012-2015 | |
| set -e | |
| BUILD_DEVICE=yes | |
| BUILD_SIMULATOR=yes | |
| BUILD_STATIC_FRAMEWORK=no | |
| BUILD_STATIC_FRAMEWORK_TV=no |
| "query" => { | |
| "filtered" => { | |
| "query" => { | |
| "match_all" => {} | |
| }, | |
| "filter" => { | |
| "bool" => { | |
| "must" => [ | |
| { | |
| "terms" => { |
| function FindProxyForURL(url, host) { | |
| var usa = ['hulu.com', 'netflix.com', 'abc.go.com', 'pandora.com', 'aetv.com', 'adultswim.com', 'bravotv.com', 'rdio.com']; | |
| var direct = ['ll.a.hulu.com', 'ads.hulu.com', 'ak.rdio.com', 'stats.pandora.com', 'pubsub1.rdio.com']; | |
| for(var i=0;i<direct.length;i++){ | |
| if(host.indexOf(direct[i]) > -1){ | |
| return 'DIRECT'; | |
| } | |
| } | |
| if(host.match(/audio.*\.pandora\.com/) || host.match(/const.*\.pandora\.com/)){ | |
| return 'DIRECT'; |
| #WARNING do not load this file in environments other than test | |
| module AfterCommitPatch | |
| def transaction(options = {}) | |
| rolled_back = false | |
| return_value = nil | |
| begin | |
| return_value = super | |
| rescue ActiveRecord::Rollback => e | |
| puts e.message | |
| puts e.backtrace |
This is all based on the [alpha release][1].
From the built-in help system:
For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).
These are simple setting = value listings where the value is a format string in which other variables can be referenced.
| module Tire | |
| module Search | |
| class Query | |
| def fuzzy(match={}) | |
| @value = { :fuzzy => match } | |
| @value | |
| end | |
| def text(match={}) |
Do not use rvm (or install and run from JRuby). The google-appengine gem must install into your system MRI. The appengine-sdk gem includes a complete Java app server. We bootstrap Java from MRI, then your app runs inside a servlet container (with access to all the APIs) using the version of JRuby installed into each app.
We assumed Rails 2 would never work without rubygems, and we committed to gem bunlder for JRuby on App Engine, so we were waiting for Rails 3. Fortunately, Takeru Sasaki was able to patch the Rails 2.3.x calls to rubygems, and now we have it working. Rails 2.3.x currently spins up several seconds faster than Rails 3, and just a few seconds behind Sinatra.
See the TInyDS version also: gist.github.com/gists/269075
| # Critical default settings: | |
| disable_system_gems | |
| disable_rubygems | |
| bundle_path '.gems/bundler_gems' | |
| # List gems to bundle here: | |
| gem 'rails_dm_datastore' | |
| gem 'rails', "2.3.5" | |
| # Needed for Devise-Plugin |