ここでXXX言語の簡単な説明とか。
コンパイラ or インタープリタとか。どう書いてどう実行するか。プログラムの書き方、コメントの書き方。コンパイルチェック、デバッガーの起動など。
| <link rel="import" href="../topeka-elements/theme.html"> | |
| <link rel="import" href="../topeka-elements/topeka-resources.html"> | |
| <link rel="import" href="../topeka-elements/topeka-app.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
| Object.generate = Object.generate ? Object.generate : function(proto) { | |
| function F() {} | |
| if (!proto) { | |
| return F; | |
| } | |
| if (typeof proto === 'function') { | |
| F.prototype = new proto(); | |
| return F; | |
| } | |
| if (typeof proto === 'object' && proto.constructor === Object) { |
| -- use it as service of automator | |
| on run {input, parameters} | |
| do shell script "date +%Y-%m-%d\\ %H.%M.%S" | |
| set the clipboard to input & " - " & result as text | |
| tell application "System Events" | |
| the path to the frontmost application | |
| the name of the result |
| on createTheObject(objectName) | |
| run script " | |
| script " & (objectName as text) & " | |
| property theProp : missing value | |
| on theHandler() | |
| log theProp | |
| end theHandler | |
| end script | |
| return " & (objectName as text) | |
| end createTheObject |
| (* closure of applescript *) | |
| on theClosure() | |
| script outer | |
| property x : 0 | |
| script inner | |
| set x to x + 1 | |
| end script | |
| end script | |
| return inner of outer |