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 Foundation | |
| import Security | |
| enum LockerPayloadError: Error { | |
| case invalidPublicKey | |
| case encryptionFailed | |
| } | |
| /// Generate RSA-OAEP SHA-256 encrypted payload for verify-payload endpoint. | |
| /// - Parameters: |
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 Foundation | |
| go(println("in a thread")) | |
| // buffered channel | |
| var c = Chan(buffer:20) | |
| // sending routing | |
| go { | |
| while(true) { |
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
| #!/bin/bash | |
| # assets-exporter | |
| # Author: Isnan Franseda | |
| # HappyFresh 2017 | |
| # sketchtool installed may used different version with sketchtool provided by Sketch.app version installed | |
| # if you find error "Failed to open document", you may need to re-install sketchtool based on Sketch.app version installed | |
| # For example: /Application/Sketch.app/Contents/Resources/sketchtool/install.sh | |
| # |