I hereby claim:
- I am sgammon on github.
- I am samgammon (https://keybase.io/samgammon) on keybase.
- I have a public key ASBD6RNSQSEvFd_ODPPS9UZSYN6k-trfUU8Nhi4epWEsOAo
To claim this, I am signing this object:
load( | |
"@elide//defs/toolchain/cloudflare:deploy.bzl", | |
"cloudflare_worker", | |
) | |
cloudflare_worker( | |
name = "<some_target_name>", | |
worker = "<worker_name>", | |
entrypoint = "entrypoint.js", |
val dbReference: DatabaseReference = firebase.ref("some/db/path") | |
dbReference.runTransaction(object: Transaction.Handler { | |
/** | |
* This method will be called once, at completion, with the results of the transaction. | |
* | |
* @param error null if no errors occurred, otherwise it contains a description of the error | |
* @param committed True if the transaction successfully completed, false if it was aborted or | |
* an error occurred |
[48;5;232m [48;5;233m [48;5;234m [48;5;235m [48;5;236m [48;5;237m [48;5;236m [48;5;235m [48;5;234m [48;5;233m [48;5;232m [0m | |
[48;5;232m [48;5;233m [48;5;234m [48;5;235m [48;5;234m [48;5;235m [48;5;236m [48;5;237m [48;5;236m [48;5;235m [48;5;234m [48;5;233m [48;5;232m [0m | |
[48;5;232m [48;5;233m [48;5;234m [48;5;235m [48;5;234m [48;5;235m [48;5;236m [48;5;237m [48;5;236m [48;5;235m [48;5;234m [48;5;233m [48;5;232m [0m | |
[48;5;232m [48;5;233m [48;5;234m [48;5;235m [48;5;234m [48;5;235m [48;5;236m [48;5;237m [48;5;236m [48;5;235m [48;5;234m [48;5;233m [48;5;232m [0m | |
[m [48;5;233m [48;5;234m [48;5;233m [48;5;234m [48;5;235m [48;5;234m [48;5;235m [48;5;236m [48;5;237 |
class Something { | |
/// Counter. We keep this around to prove we aren't getting new copies of `Something` - just the same one, over and | |
/// over again. | |
var _counter: Int = 0 | |
/// Cached instance. We put the one copy we make of `Something` here, so we can keep it around, and hand it back if | |
/// anyone else asks for it. It's important that this is private, too. | |
private static var _singleton: Something? = nil |
/// | |
/// | |
private func generateHotspotConfiguration() throws -> NEHotspotConfiguration { | |
let eap = NEHotspotEAPSettings() | |
eap.supportedEAPTypes = [21] /* TTLS (`21`) */ | |
eap.ttlsInnerAuthenticationType = .eapttlsInnerAuthenticationMSCHAPv2 | |
eap.isTLSClientCertificateRequired = true | |
eap.outerIdentity = "customer@vip.chalice.farm" | |
eap.password = "4zJmhhjj" | |
eap.preferredTLSVersion = ._1_0 |
{ | |
"consumes": [ | |
"application/json", | |
"application/x-www-form-urlencoded" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"schemes": [ | |
"http", |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
import Foundation | |
// how to make it | |
func timing(name: String, start: NSTimeInterval = NSDate().timeIntervalSince1970)() { | |
println("\(name): \(NSDate().timeIntervalSince1970 - start)") | |
} | |
/*** | |
* | |
* | |
* /$$ /$$ /$$$$$ /$$$$$$ | |
* | $$ /$$/ |__ $$ /$$__ $$ | |
* | $$ /$$/ /$$$$$$ /$$$$$$ /$$$$$$$ | $$| $$ \__/ | |
* | $$$$$/ /$$__ $$ /$$__ $$| $$__ $$ | $$| $$$$$$ | |
* | $$ $$ | $$$$$$$$| $$$$$$$$| $$ \ $$ /$$ | $$ \____ $$ | |
* | $$\ $$ | $$_____/| $$_____/| $$ | $$ | $$ | $$ /$$ \ $$ | |
* | $$ \ $$| $$$$$$$| $$$$$$$| $$ | $$ | $$$$$$/| $$$$$$/ |
/*** | |
* | |
* | |
* /$$ /$$ /$$$$$ /$$$$$$ | |
* | $$ /$$/ |__ $$ /$$__ $$ | |
* | $$ /$$/ /$$$$$$ /$$$$$$ /$$$$$$$ | $$| $$ \__/ | |
* | $$$$$/ /$$__ $$ /$$__ $$| $$__ $$ | $$| $$$$$$ | |
* | $$ $$ | $$$$$$$$| $$$$$$$$| $$ \ $$ /$$ | $$ \____ $$ | |
* | $$\ $$ | $$_____/| $$_____/| $$ | $$ | $$ | $$ /$$ \ $$ | |
* | $$ \ $$| $$$$$$$| $$$$$$$| $$ | $$ | $$$$$$/| $$$$$$/ |