I hereby claim:
- I am jonmagic on github.
- I am jonmagic (https://keybase.io/jonmagic) on keybase.
- I have a public key whose fingerprint is 803A EE9B 6F2C DC04 7FCF B59C A6BE 6D15 DF67 5762
To claim this, I am signing this object:
| Rehearsal -------------------------------------------- | |
| sort 1.140000 0.010000 1.150000 ( 1.166011) | |
| subtract 0.610000 0.030000 0.640000 ( 0.672543) | |
| ----------------------------------- total: 1.790000sec | |
| user system total real | |
| sort 1.240000 0.010000 1.250000 ( 1.254706) | |
| subtract 0.620000 0.030000 0.650000 ( 0.672024) |
| irb(main):001:0> class Foo | |
| irb(main):002:1> def set_callback(&block) | |
| irb(main):003:2> @callback = block | |
| irb(main):004:2> end | |
| irb(main):005:1> | |
| irb(main):006:1* def run | |
| irb(main):007:2> 10.times do |n| | |
| irb(main):008:3* @callback.call(n) if @callback | |
| irb(main):009:3> end | |
| irb(main):010:2> |
| require "benchmark" | |
| class Foo | |
| def initialize(bar) | |
| @bar = bar | |
| end | |
| attr_reader :bar | |
| def do_case |
| samples = Dir.glob("/Users/jonmagic/Desktop/samples/*.wav") | |
| load_samples samples | |
| define :cry do | |
| sample samples.choose | |
| sleep 1.6 | |
| end | |
| define :beat do | |
| sample :loop_compus, attack: 0.01, sustain: 1, release: 0.5 |
| 1. Click on the little picture or icon in the upper right and click "Sign out”. | |
| 2. Then on the next screen click "Sign in with a different account”. | |
| 3. Click “Remove” | |
| 4. Click the X next to the account you want to sign out of. | |
| 5. Click “Done” | |
| 6. Congratulations now you are signed out. |
I hereby claim:
To claim this, I am signing this object:
| class Email < ActiveRecord::Base | |
| # Nope, it's not RFC compliant. F*** that regex. | |
| # http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html | |
| EmailRegex = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i.freeze | |
| before_validation :strip_spaces | |
| # Public: The email address. | |
| # column :address |
| class ApplicationController < ActionController::Base | |
| include SessionAuthentication | |
| # ... | |
| end |
| foooasdffdsa |