I hereby claim:
- I am triangletodd on github.
- I am triangletodd (https://keybase.io/triangletodd) on keybase.
- I have a public key ASBIK4ohhlMTNaunJK6ta18ibDLO7SUNbJJrTswY9S9n8go
To claim this, I am signing this object:
__...__ | |
.--""``` ```""--. | |
':--..___ ___..--:' | |
\ ``` / | |
.-` ___.....___ '-. | |
.:-""`` ~ ~ ``""-:. | |
/`-..___ ~ ~ ~___..-'\ | |
/ ~ '`""-----""` \ | |
; ; | |
; '::. ' .:' _. ; |
require 'benchmark' | |
require 'bcrypt' | |
(5..15).to_a.each do |i| | |
bm = Benchmark.measure { BCrypt::Password.create('I have a hairy cat', cost: i) } | |
puts "cost: #{i} \t #{bm}" | |
end | |
#=> cost: 5 0.010000 0.000000 0.010000 ( 0.001988) | |
#=> cost: 6 0.000000 0.000000 0.000000 ( 0.004081) |
--- | |
- :code: AED | |
:description: UAE Dirham | |
:notes: "United Arab Emirates" | |
- :code: AFA | |
:description: Afghani | |
:notes: "Afghanistan. DEPRECATED, replaced by AFN" | |
- :code: AFN | |
:description: Afghani | |
:notes: "Afghanistan (prices normally quoted as integers)" |
#!/usr/bin/env bash | |
set -e | |
url="$1" | |
temp_dir=$(mktemp -d /tmp/yt.XXXXXXXXXXXXX) | |
validate_url() { | |
if [ -z $url ]; then | |
echo 'Usage: yt [url]' | |
exit 0 |
#!/usr/bin/env ruby | |
require 'benchmark/ips' | |
SLUG = 'writing-fast-ruby' | |
def slow | |
SLUG.gsub('-', ' ') | |
end | |
def fast |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
$:.push(File.expand_path('../', __FILE__)) | |
require 'soma_fm' | |
puts SomaFM.to_json | |
- Temporary commit. | |
#GrammarNazi | |
(\ /)<br/>(O.o)<br/>(> <) Bunny approves these changes. | |
(c) Microsoft 1988 | |
-m \'So I hear you like commits ...\' | |
. | |
... | |
/sigh | |
640K ought to be enough for anybody | |
8==========D |
function dumpElementTree() { | |
UIALogger.logStart("Logging element tree ..."); | |
UIATarget.localTarget().logElementTree(); | |
UIALogger.logPass(); | |
} | |
function inspect(obj) { | |
var log = UIALogger; | |
var methods = []; |
#!/usr/bin/env ruby | |
require 'pry' | |
require 'yaml' | |
require 'google_drive' | |
GDRIVE_USER = ENV['GDRIVE_USER'] || raise('Please set the GDRIVE_USER environment variable') | |
GDRIVE_PASS = ENV['GDRIVE_PASS'] || raise('Please set the GDRIVE_USER environment variable') | |
YML_FILE = 'apple_app_info.yml' | |
data = {} |