Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am yongsungyoon on github.
  • I am yongsungyoon (https://keybase.io/yongsungyoon) on keybase.
  • I have a public key ASCA72WQ8plcrBr2HmdI-RZ-F1wSacrchrhdhD-ThwGwSAo

To claim this, I am signing this object:

@yongsungyoon
yongsungyoon / first_parameter_error
Created June 6, 2014 08:23
Swift first parameter test for method
class Counter {
var count: Int = 0
func incrementBy(amt: Int, numberOfTimes times: Int) {
count += amt * times
}
}
var counter = Counter()
counter.incrementBy(amt: 2, numberOfTimes: 7) // syntax error. first parameter name must be removed.
#!/usr/bin/osascript
tell application "iTerm"
set tab1 to {}
-- tab을 여러개 만들 수 있음
-- cmds 는 벡터 형태로 명령들을 계속 추가할 수 있음. 예 {cmds:{"echo 1", "echo 2", "echo 3"}}
-- name terminal 상단의 나오는 이름임
-- 가로 세로 분할은 탭별로 전체 갯수에 맞추어서 자동으로 나옴.
set tab1 to tab1 & {{cmds:{"myssh.sh PUSHPapi1"}, name:"PUSHPapi1"}}
set tab1 to tab1 & {{cmds:{"myssh.sh PUSHPapi2"}, name:"PUSHPapi2"}}
set tab1 to tab1 & {{cmds:{"myssh.sh PUSHPapi3"}, name:"PUSHPapi3"}}