This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
# Activate the gem you are reporting the issue against. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x x x 4 x 6 x x x | |
x 5 6 x x x 3 9 x | |
x 9 x x x x x 4 x | |
2 x x x 3 x x x 1 | |
x x x 6 x 9 x x x | |
3 x x x 5 x x x 6 | |
x 4 x x x x x 5 x | |
x 8 2 x x x 4 7 x | |
x x x 5 x 2 x x x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def no_repeats(year_start, year_end) | |
no_repeats=[] | |
(year_start..year_end).each do |yr| | |
no_repeats<<yr if no_repeat?(yr) | |
end | |
no_repeats | |
end | |
def no_repeat?(year) | |
num_seen=[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am pwnall on github. | |
* I am pwnall (https://keybase.io/pwnall) on keybase. | |
* I have a public key whose fingerprint is 1CC4 CD57 EF01 392D 1DDF 2531 0C58 7774 D23E 223B | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<script> | |
// Maximum difference between Blink's clock and V8's. | |
var maxDelta = 0; | |
// Measure clock differences for 30 seconds. | |
// | |
// Browsers will stop our JavaScript if it runs for too long without returning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<script> | |
// Watch out for the clock going backwards for 30 seconds. | |
// | |
// Browsers will stop our JavaScript if it runs for too long without returning | |
// control to the event loop. | |
var smallTest = function() { | |
var startTime = Date.now(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mechanize' | |
loop do | |
agent = Mechanize.new | |
agent.user_agent_alias = 'Mac Safari' | |
puts "Fetching form" | |
page = agent.get "https://docs.google.com/forms/d/15a7OlkEn9qDCxyG23a4ilS6SRa0c61p4el222OFqRAk/viewform" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LabeledString < String | |
def +(other) | |
LabeledString.new original_plus(other) | |
end | |
end | |
class String | |
alias_method :original_plus, :+ | |
def +(other) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/pwnall/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/bundler/gems/middleman-sprockets-e5806151a349/lib/middleman-sprockets/sass_function_hack.rb:18:in `image_url': undefined local variable or method `sprockets_context' for #<Sass::Script::Functions::EvaluationContext:0x0000000153c9f0> (NameError) | |
(in /home/pwnall/workspace/mm-sprockets/source/stylesheets/all.css.sass) | |
from /home/pwnall/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sass-3.2.8/lib/sass/script/funcall.rb:112:in `_perform' | |
from /home/pwnall/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sass-3.2.8/lib/sass/script/node.rb:40:in `perform' | |
from /home/pwnall/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sass-3.2.8/lib/sass/tree/visitors/perform.rb:298:in `visit_prop' | |
from /home/pwnall/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sass-3.2.8/lib/sass/tree/visitors/base.rb:37:in `visit' | |
from /home/pwnall/.rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/sass-3.2.8/lib/sass/tree/visitors/perform.rb:100:in `visit' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/pwnall/.rbenv/versions/1.9.3-p194/bin/ruby extconf.rb | |
extconf.rb:20: Use RbConfig instead of obsolete and deprecated Config. | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes | |
checking for g++... g++ | |
checking for C++ compiler default output file name... a.out | |
checking whether the C++ compiler works... yes |