Created
June 3, 2018 01:25
-
-
Save thosakwe/95a85ab6e3489dd61d623060565b0c28 to your computer and use it in GitHub Desktop.
CASCADA
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
import file | |
def main |argc, argv| | |
if (>= (argc 2)) | |
argv | |
| first | |
| file.read | |
| stdout | |
else | |
stdin | stdout |
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
def main | |
hello | stdout |
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
import http | |
import json | |
def main | |
("GET" "http://google.com") | |
| http.request | |
| http.header "accept" "*/*" | |
| http.header "content-type" "json" | |
| http.body ({foo: "bar"} | json.encode) | |
| http.send | |
| stdout | |
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
def main | |
("127.0.0.1" 3000) | |
| socket | |
| bind | |
| each { sock -> ... } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment