- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
fizz = function f() { | |
fizz = function () { | |
fizz = function () { | |
fizz = f | |
return "Fizz" | |
} | |
} | |
} | |
buzz = function f() { |
# 少し凝った zshrc | |
# License : MIT | |
# http://mollifier.mit-license.org/ | |
######################################## | |
# 環境変数 | |
export LANG=ja_JP.UTF-8 | |
# 色を使用出来るようにする |
mac | |
$ brew install source-highlight | |
$ vim .zshrc | |
追記 | |
export LESSOPEN='| /usr/local/bin/src-hilite-lesspipe.sh %s' | |
alias less='less -R' |
# bad | |
def compute_thing(thing) | |
if thing[:foo] | |
update_with_bar(thing) | |
if thing[:foo][:bar] | |
partial_compute(thing) | |
else | |
re_compute(thing) | |
end | |
end |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
matcher | aliased to | description |
---|---|---|
a_truthy_value | be_truthy | a truthy value |
a_falsey_value | be_falsey | a falsey value |
be_falsy | be_falsey | be falsy |
a_falsy_value | be_falsey | a falsy value |
クレジットカード番号には法則があり、先頭6桁でカードの種類を識別、分類することができる。
詳細はISO/IEC 7812で規定されている。
ISO/IEC 7812 - Wikipedia https://ja.wikipedia.org/wiki/ISO/IEC_7812
先頭の6桁を銀行識別番号(Bank Identification Number、略称:BIN)ないしは発行者識別番号(Issuer Identification Number、略称:IIN)と呼び、この先頭6桁でカード発行会社(イシュア、issuer)が判るようになっている。
var postMessageRoundTripCounter = 0; | |
var setTimeoutRoundTripCounter = 0; | |
startPostMessageLoop = function(){ | |
// var lastPostMessageAt = Date.now() | |
var receiveMessage = function(message){ | |
if (message.data !== 'postMessageTest') return; | |
// var delta = Date.now() - lastPostMessageAt; | |
// console.log('postMessage delta:', delta); | |
postMessageRoundTripCounter++; |
if (!Object.assign) { | |
Object.defineProperty(Object, 'assign', { | |
enumerable: false, | |
configurable: true, | |
writable: true, | |
value: function(target) { | |
'use strict'; | |
if (target === undefined || target === null) { | |
throw new TypeError('Cannot convert first argument to object'); | |
} |