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
| square : Path | |
| square = path [ (50,50), (50,-50), (-50,-50), (-50,50), (50,50) ] | |
| blueSquare : Form | |
| blueSquare = traced (dashed blue) square | |
| rotateSquareBy : Float -> Form | |
| rotateSquareBy deg = rotate deg blueSquare | |
| degrees : [number] |
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
| import 'dart:io'; | |
| import 'dart:async'; | |
| import 'dart:convert'; | |
| import 'dart:collection'; | |
| void main() { | |
| print("Please, enter 'first name' and 'last name' finish with a empty line\n"); | |
| Stream cmdLine = stdin | |
| .transform(UTF8.decoder) | |
| .transform(new LineSplitter()); |
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
| (ns caesar.core) | |
| (def secret "RVAWNUEVFGJVRQREIBEORVHAQRFUNGXHPURAORQVRAGRHPU") | |
| (def text "EINJAHRISTWIEDERVORBEIUNDESHATKUCHENBEDIENTEUCH") | |
| (defn encode | |
| "Encodes the text with shifting each char shift positions" | |
| [text shift] | |
| (apply str (map char (map #(+ (mod (+ shift %) 26) 65) (map int text))))) |
NewerOlder