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
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 |
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
object Ex01 extends App { | |
var sum = 0 | |
for (i <- 0 until 1000) { | |
if(i % 3 == 0 || i % 5 == 0) sum = sum + i | |
} | |
println(sum) | |
} |
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
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 |
NewerOlder