I hereby claim:
- I am djbender on github.
- I am derek (https://keybase.io/derek) on keybase.
- I have a public key whose fingerprint is 45D7 0E2E 2551 C50E D2E9 AFA2 6100 1758 2E24 99F4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # config/routes.rb | |
| resources :documents do | |
| resources :versions, controller: "documents/versions" do | |
| post :restore, on: :member | |
| end | |
| resource :lock, controller: "documents/locks" | |
| end | |
| desc "Running all the benchmarks and writing results to file" | |
| task :benchmark do | |
| STDOUT.puts("Benchmarking:") | |
| Dir[File.join(File.dirname(__FILE__), "bench", "**", "*.rb")].each do |benchmark| | |
| STDOUT.puts <<-DOCUMENT | |
| --- | |
| file: #{benchmark} | |
| platform: #{RUBY_DESCRIPTION} | |
| timestamp: #{Time.now} | |
| results: | |
| def public_setters | |
| public_methods.select{|method| method =~ /=$/ }.delete_if{|method| %i(== === !=).include?(method)} | |
| end |
| AWS.config(access_key_id: ENV['AWS_ACCESS_KEY_ID'], | |
| secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] ) | |
| S3_BUCKET = AWS::S3.new.buckets[ENV['S3_BUCKET']] |
| $ git push heroku master | |
| Initializing repository, done. | |
| Counting objects: 60, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (49/49), done. | |
| Writing objects: 100% (60/60), 14.23 KiB | 0 bytes/s, done. | |
| Total 60 (delta 2), reused 0 (delta 0) | |
| -----> Ruby app detected | |
| -----> Compiling Ruby/Rails |
| // IE9 must have onprogress be set to a unique function. | |
| xhr.onprogress = function () { | |
| // IE must die | |
| } | |
| // hate IE | |
| xhr.ontimeout = noop |
| class @Reloader | |
| constructor: (@selector = '.wrapper', @path, @interval = 2000) -> | |
| @start() | |
| start: => | |
| @timer = setInterval(@fetch, @interval) | |
| stop: => | |
| clearInterval(@timer) |
| accomplished | |
| aggravated | |
| amused | |
| angry | |
| annoyed | |
| anxious | |
| apathetic | |
| artistic | |
| awake | |
| bitchy |
| gem 'rack-rewrite', '~> 1.0.0' | |
| require 'rack/rewrite' | |
| use Rack::Rewrite do | |
| r301 %r{^([^\.]*[^\/])$}, '$1/' | |
| r301 %r{^(.*\/)$}, '$1index.html' | |
| end | |
| use Rack::Static, :urls => ["/"], :root => Dir.pwd + '/output' | |
| # Empty app, should never be reached: |