Skip to content

Instantly share code, notes, and snippets.

View asbubam's full-sized avatar
:octocat:
Just enjoy the show.

asbubam asbubam

:octocat:
Just enjoy the show.
View GitHub Profile
@asbubam
asbubam / Ex02.scala
Last active December 16, 2015 09:39
Euler scala Ex02
object Ex02 extends App {
var index = 0
var sum = 0
/*
질문1) 여기서 아래처럼 루프를 돌리려고 했으나 에러발생
var fiboResult = 0
while((fiboResult = fibo(index)) <= 4000000) {
Ex02.scala:6: error: value <= is not a member of Unit
@asbubam
asbubam / Ex01.scala
Last active December 16, 2015 08:58
Euler scala Ex01
object Ex01 extends App {
var sum = 0
for (i <- 0 until 1000) {
if(i % 3 == 0 || i % 5 == 0) sum = sum + i
}
println(sum)
}
@asbubam
asbubam / iTermRails.scpt
Last active December 15, 2015 21:59 — forked from AndrewTerry/iTermRails.scpt
$osascript iTermRails.scpt
property railsFolder : "/Users/asbubam/dev/rails_projects/" --update this to reflect your own location
global targetProjectName
global railsProject
-- Creates a new tab with the command passed to it, and sets the title accordingly
on newTab(tabTitle, command)
tell application "iTerm" to tell last terminal
launch session "Default"
tell last session
write text "cd " & railsProject & "/" & command