View web_capture.rb
#!/usr/bin/env ruby | |
require 'capybara-webkit' # '~> 0.14.0' | |
require 'optparse' | |
require 'cgi' | |
options = {} | |
OptionParser.new do |opt_parser| | |
opt_parser.on('-O filename') {|value| options[:filename] = value } |
View gist:3057860
require 'timecop' | |
module ActiveRecordDetectTimeInScopes | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def scope(*args) | |
scope_caller = caller | |
Timecop.travel(Time.now) do | |
Timecop.top_stack_item.define_singleton_method :time do |
View all-reset.scss
@mixin all-reset { | |
azimuth: center; | |
background: #fff; | |
border: none; | |
bottom: auto; | |
caption-side: top; | |
clear: none; | |
clip: auto; | |
color: #000; | |
content: ''; |
View Evolution of a Perl Programmer.pl
# Newbie programmer | |
$input=<>; | |
sub factorial { | |
$s=1; | |
$r=1; | |
while ($s <= $input) { | |
$r *= $s; | |
$s++; | |
} | |
if($input == 0) |
View gist:100359
100000 get!!! | |
 ̄ ̄ ̄ ̄∨ ̄ ̄ ̄ ̄ ̄ (´ | |
∧∧ ) (´⌒(´ | |
⊂(゚Д゚⊂⌒`つ≡≡≡(´⌒;;;≡≡≡ | |
" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ (´⌒(´⌒;; | |
ズザーーーーーッ |