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
| #if swift(>=2.2) | |
| for counter in 0 ..< 5 { | |
| } | |
| #else | |
| for var counter=0; counter < 5; counter++ { | |
| } | |
| #endif |
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
| node { | |
| stage 'Build' | |
| sh './gradlew assemble' | |
| stage 'Test' | |
| sh './gradlew test' | |
| } |
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
| == Hello World == | |
| module Main where | |
| main :: IO() | |
| main = do | |
| putStrLn "Hello World" | |
| Compile and Executable | |
| $ghc -o hello hello.hs |
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
| //Choice A | |
| function hello() { | |
| //TODO | |
| } | |
| //Choice B | |
| function hello() | |
| { | |
| //TODO | |
| } |
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
| FROM python:2.7 | |
| ADD . /src | |
| WORKDIR /src | |
| RUN pip install -r requirements.txt |
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
| json_key_file "google_play.json" | |
| package_name "up1.gradecalculator" |
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
| { | |
| "request": { | |
| "urlPattern": "/products", | |
| "method": "GET" | |
| }, | |
| "response": { | |
| "status": 200, | |
| "headers": | |
| { | |
| "Content-Type" : "application/json" |
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
| desc "Creating a code signing certificate and provisioning profile" | |
| lane :provision do | |
| produce | |
| cert | |
| sigh(force: true) | |
| end |
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
| protocol ActionType { | |
| init() | |
| } | |
| struct DefaultAction : ActionType { | |
| init() { } | |
| } | |
| protocol StandardAction : ActionType { | |
| var type: String { get } |
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
| //Swift | |
| isLogin("somkiat", password: "1234") | |
| //Kotlin | |
| isLogin("somkiat", "1234") |