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
| @interface Window : UIWindow | |
| @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
| require 'openssl' | |
| require 'Base64' | |
| key = "secret-key" | |
| data = "some data to be signed" | |
| Base64.encode64(OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), key, data)).strip() |
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
| var server = Squid.Server() | |
| var router = Squid.Router() | |
| router.get('/login') { | |
| return Authentication.Login(originalURL: $0.originalURL) | |
| } | |
| router.get('/post/:int') { | |
| return Post.Single(postID: $1) // $1 has type of Int |
OlderNewer