This file contains hidden or 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
| Integer.metaClass.isPrime = { | |
| if (delegate < 2) return false | |
| return delegate.with{i -> (2..<i).every{i % it}} | |
| } | |
| (1..100).each{num -> | |
| println num.isPrime() ? '"JOJO!"' : num | |
| } |
This file contains hidden or 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
| editor = 'C:/Program Files (x86)/Hidemaru/Hidemaru.exe' //fu8 | |
| editor = 'C:/Program Files (x86)/sakura/sakura.exe' -code=4 | |
| editor = 'C:/Program Files (x86)/EmEditor/EmEditor.exe' //cp 65001 | |
| editor = 'C:/Program Files (x86)/TeraPad/TeraPad.exe' //cu8 | |
| editor = 'vim -c "set fenc=utf-8"' |
This file contains hidden or 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
| [BG] | |
| ; Use Eterm look-feel Background extension (on/off) | |
| BGEnable=off | |
| ; Use AlphaBlend API (on/off) | |
| BGUseAlphaBlendAPI=on | |
| ; Susie plugin path | |
| BGSPIPath=plugin |
This file contains hidden or 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
| task downloadZip(type: MyDownload) { | |
| sourceUrl = 'https://dl.dropboxusercontent.com/u/645223/gradle/quickstart.zip' | |
| target = file("${temporaryDir}/quickstart.zip") | |
| } | |
| class MyDownload extends DefaultTask { | |
| @Input | |
| String sourceUrl | |
| @OutputFile |
This file contains hidden or 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
| task unzip(type: Copy) { | |
| def zipFile = file("${temporaryDir}/quickstart.zip") | |
| def outputDir = file("${temporaryDir}/") | |
| from zipTree(zipFile) | |
| into outputDir | |
| } | |
This file contains hidden or 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
| def zipFile ='' | |
| task downloadZip(type: MyDownload) { | |
| sourceUrl = 'https://dl.dropboxusercontent.com/u/645223/gradle/quickstart.zip' | |
| target = file("${temporaryDir}/quickstart.zip") | |
| zipFile = target | |
| } | |
| class MyDownload extends DefaultTask { | |
| @Input | |
| String sourceUrl |
This file contains hidden or 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
| def zipFile ='' | |
| task downloadZip(type: MyDownload) { | |
| sourceUrl = 'https://dl.dropboxusercontent.com/u/645223/gradle/quickstart.zip' | |
| target = file("${temporaryDir}/quickstart.zip") | |
| zipFile = target | |
| } | |
| class MyDownload extends DefaultTask { | |
| @Input | |
| String sourceUrl |
This file contains hidden or 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
| apply plugin: 'war' | |
| apply plugin: 'jetty' | |
| war { | |
| baseName = 'quickstart' | |
| archiveName = "webapp-quickstart.war" | |
| from 'war' | |
| } | |
This file contains hidden or 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
| apply plugin: 'war' | |
| apply plugin: 'jetty' | |
| war { | |
| baseName = 'pgstudio' | |
| archiveName = "pgstudio.war" | |
| from 'war' | |
| } | |
| httpPort = 8080 | |
| stopPort = 9451 |
This file contains hidden or 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
| (require 'org) | |
| (defconst toncs-org-link-prefixes '(("id" . "🦄") | |
| ("roam" . "🦄") | |
| ("attachment" . "📎") | |
| ("file" . "💾") | |
| ("file+sys" . "💾") | |
| ("file+emacs" . "🗒") | |
| ("shell" . "💻") | |
| ("https" . "🌐") |
OlderNewer