This file contains hidden or 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
#!/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 } |
This file contains hidden or 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 '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 |
This file contains hidden or 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
@mixin all-reset { | |
azimuth: center; | |
background: #fff; | |
border: none; | |
bottom: auto; | |
caption-side: top; | |
clear: none; | |
clip: auto; | |
color: #000; | |
content: ''; |
This file contains hidden or 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
# Newbie programmer | |
$input=<>; | |
sub factorial { | |
$s=1; | |
$r=1; | |
while ($s <= $input) { | |
$r *= $s; | |
$s++; | |
} | |
if($input == 0) |
This file contains hidden or 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
100000 get!!! | |
 ̄ ̄ ̄ ̄∨ ̄ ̄ ̄ ̄ ̄ (´ | |
∧∧ ) (´⌒(´ | |
⊂(゚Д゚⊂⌒`つ≡≡≡(´⌒;;;≡≡≡ | |
" ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ (´⌒(´⌒;; | |
ズザーーーーーッ |