I hereby claim:
- I am divoxx on github.
- I am divoxx (https://keybase.io/divoxx) on keybase.
- I have the public key with fingerprint 26B9 C91E C4EA C643 DA16 9DAF D361 E2EA 9244 CBBC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Foo | |
def self.bar | |
return @bar if defined?(@bar) | |
puts "Calculating" | |
@bar = "bar" | |
end | |
end | |
irb(main):008:0> Foo.bar | |
Calculating |
class Bar | |
def self.bar | |
@bar ||= "bar" | |
end | |
def self.baz | |
@@baz ||= "baz" | |
end | |
def bar |
class ApplicationController < ActionController::Base | |
around_filter :set_timezone | |
def set_timezone | |
old, Time.zone = Time.zone, current_user.time_zone | |
yield | |
ensure | |
Time.zone = old | |
end | |
end |
$ ls -ld $(pwd)/data | |
drwxr-xr-x 3 divoxx staff 102 Jun 12 14:29 /Users/divoxx/Code/src/github.com/doximity/reproducible-envs/data | |
$ ls -la $(pwd)/data/ | |
total 0 | |
drwxr-xr-x 3 divoxx staff 102 Jun 12 14:29 . | |
drwxr-xr-x 9 divoxx staff 306 Jun 12 14:45 .. | |
drwxr-xr-x 3 divoxx staff 102 Jun 12 14:29 es | |
$ docker run -i -t -v $(pwd)/data:/data doximity/base-arch ls -la /data/ |
$ brew install libiconv | |
$ bundle config build.nokogiri -- --with-iconv-dir=/usr/local/opt/libiconv | |
$ bundle install |
Request = Class.refactor(Request, { | |
Extends: Request, | |
initialize: function(options) { | |
this.parent(options) | |
this.addEvent('complete', function() { alert('foo') }) | |
} | |
}) |
$each([Request, Request.HTML, Request.JSON], function(klass) { | |
klass.prototype = Class.refactor(klass, { | |
Extends: klass, | |
initialize: function(options) { | |
this.parent(options) | |
this.addEvent('complete', function() { alert('foo') }) | |
} | |
}).prototype | |
}) |
var reapplyTimeoutId = null | |
$each(['insertBefore', 'replaceChild', 'removeChild', 'appendChild'], function(methodName) { | |
Node.prototype["_" + methodName] = Node.prototype[methodName] | |
Node.prototype[methodName] = function() { | |
var ret = this["_" + methodName](arguments[0], arguments[1]) | |
if (reapplyTimeoutId) { clearTimeout(reapplyTimeoutId) } | |
reapplyTimeoutId = setTimeout(Attitude.applyDefinitions.bind(Attitude), 100) | |
return ret | |
} |
var InputTitleAsValue = new Attitude.Behavior({ | |
initialize: function() { | |
if (this.element.get('value') == '') { | |
this.element.set('value', this.element.get('title')) | |
} else if (this.element.get('value') != this.element.get('title')) { | |
this.element.removeClass('title-as-value') | |
} | |
}, | |
onFocus: function() { |