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 'logger' | |
class TmpLog | |
def write(message) | |
logger.info(message) | |
end | |
private | |
def logger |
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 'uri' | |
require 'rotp' | |
require 'rqrcode_png' | |
key = ROTP::Base32.random_base32 | |
totp = ROTP::TOTP.new(key) | |
uri = totp.provisioning_uri('hoge@hoge.com') | |
puts "key:#{key} uri:#{uri}" |
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
func excellent() { | |
let initSize = { | |
$0.width = self.width | |
$0.height = self.height | |
} | |
let haha = $.tap(Haha(), initSize) | |
let hoho = $.tap(Hoho(), initSize) | |
} |
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
func good() { | |
let haha = $.tap(Haha()) { | |
$0.width = self.width | |
$0.height = self.height | |
} | |
let hoho = $.tap(Hoho()) { | |
$0.width = self.width | |
$0.height = self.height | |
} | |
} |
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
func poor() { | |
let haha = Haha() | |
haha.width = self.width | |
haha.height = self.height | |
let hoho = Hoho() | |
hoho.width = self.width | |
hoho.height = self.height | |
} |
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 'whois' | |
domain = 'gy' | |
puts ('aa'..'zz').map { |name| "#{name}.#{domain}" } | |
.reject { |fqdn| sleep 0.5; Whois.registered? fqdn } |
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
2014-11-27 18:46:26 +0900 | |
./configure | |
--prefix=/usr/local/Cellar/octave/3.8.1 | |
--disable-docs | |
--disable-gui | |
--without-opengl | |
--with-x=no | |
checking for a BSD-compatible install... /usr/bin/install -c |
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
2014-11-27 18:02:11 +0900 | |
./configure | |
--prefix=/usr/local/Cellar/octave/3.8.1 | |
--without-opengl | |
--with-x=no | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d |