Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.
heroku addons:add deployhooks:http url="http://airbrake.io/deploys.txt?deploy[rails_env]=YOUR_ENVIRONMENT&api_key=YOUR_API_KEY&deploy[local_username]={{user}}&deploy[scm_repository]=git@github.com:youruser/your-repo.git&deploy[scm_revision]={{head}}" --app heroku_app_name |
CarrierWave.configure do |config| | |
... | |
end | |
Mongoid::Document::ClassMethods.send(:include, DelayedImageProcessing) | |
module CarrierWave | |
# http://sleeplesscoding.blogspot.com/2011/09/recreate-single-version-of.html | |
# Note: is_processing_delayed should be set before calling recreate_version! if the version depends on it. |
; Depends on [com.notnoop.apns/apns "0.1.6"]. | |
(:import ('com.notnoop.apns APNS)) | |
(defn send-push-notification [device-token message] | |
(let [service (.build (.withSandboxDestination | |
(.withCert (APNS/newService) "resources/apns-dev-cert.p12" "password"))) | |
payload (.build (.alertBody (APNS/newPayload) message))] | |
(.push service device-token payload))) |
class OnDestroyMiddleware | |
def initialize(app, env) | |
@app = app | |
end | |
def call(env) | |
env["config"].vm.provisioners.each do |provisioner| | |
env.ui.info "Attempting to remove client #{provisioner.config.node_name}" | |
`knife client show #{provisioner.config.node_name}` | |
if $?.to_i == 0 |
license: gpl-3.0 |
license: gpl-3.0 |
Implementation of Jarke J. van Wijk and Wim A.A. Nuij's smooth and efficient zooming and panning for Polymaps.
Type a place name in the search box, top right, and hit "Go!" to fly there.
gem 'resque', '>= 1.10.0' | |
gem 'heroku' # You will need the heroku gem for this too. |
module Resque | |
module AsyncHandling | |
# To disable (in config.after_initialize): | |
# Resque::AsyncHandling.enabled = false | |
mattr_accessor :enabled | |
self.enabled = true | |
def handle_asynchronously(original_method, params = { }) | |
if enabled | |
now_method = "#{ original_method }_now" |