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
func sampleNest() -> (Void->Int) { | |
var value = 3 | |
func numIncrement() -> Int { | |
return value + 1 | |
} | |
return numIncrement | |
} |
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
func sampleNest() -> Int { | |
var value = 0 | |
func numIncrement() { | |
value += 1 | |
} | |
func numDecrement() { | |
value -= 1 | |
} |
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
/* | |
* バージョン0.1 | |
* 試用版 | |
* パンくずリストを自動生成する | |
*/ | |
/* | |
* 使い方 | |
* 1. このファイルを読み込む前に、jQueryを読んでください。 | |
* <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> |
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
var file_path; | |
var scripts = document.getElementsByTagName("script"); | |
var i = scripts.length; | |
while (i--) { | |
var match = scripts[i].src.match(/(^|.*\/)left_menu\.js$/); | |
if (match) { | |
file_path = match[1]; | |
break; | |
} | |
} |