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
### Keybase proof | |
I hereby claim: | |
* I am stigi on github. | |
* I am ullrich (https://keybase.io/ullrich) on keybase. | |
* I have a public key ASBvBQm1Dl9T7YVshwg3uQq5P9VyAzlN4bQNQef1Z7rzYgo | |
To claim this, I am signing this object: |
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 fetchPassword(identifier) { | |
if (!Os.isFamily(Os.FAMILY_MAC)) { | |
println "Not on macOS, falling back to using keystore password from Environment" | |
return props.getProperty(identifier) | |
} | |
def keychainLabel = "${identifier}" | |
println "Fetching keychain password with label '${keychainLabel}" | |
def stdout = new ByteArrayOutputStream() |
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
func doubleToInt(_ input: Double) -> Int? { | |
guard ( | |
input < Double(Int.max).nextDown && | |
input > Double(Int.min).nextDown) | |
else { | |
// Int overflow | |
return nil | |
} | |
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 Realm from 'realm' | |
const openAndCloseWithModel = async (schema) => { | |
let realm | |
try { | |
console.log("Opening realm") | |
realm = await Realm.open({schema}) | |
.catch((e) => { | |
console.error("Cought rejection error") |
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
// @flow | |
// Adapted from https://gist.github.com/hyb175/beb9ceed4c34300ba7c77d3d6d44ae52 | |
import type {ModelSchemaType} from '../schema' | |
type CallbackType = ()=>{} | |
type RealmObjectType = { | |
realmModelName: string | |
} |
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
Process: Xcode [99304] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 7.3 (10183.3) | |
Build Info: IDEFrameworks-10183003000000000~2 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Xcode [99304] | |
User ID: 1666714533 |
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 Foundation | |
protocol ProtocolType { | |
func test() -> () | |
} | |
struct StructOne: ProtocolType { | |
func test() -> () {} | |
} |
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
protocol MyProtocol { | |
static func staticHello()->() | |
func hello()->() | |
} | |
// default implementation | |
extension MyProtocol { | |
static func staticHello()->() { | |
print("static bello") | |
} |
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
Analysis of sampling Kaleidoscope (pid 58992) every 1 millisecond | |
Process: Kaleidoscope [58992] | |
Path: /Applications/Kaleidoscope.app/Contents/MacOS/Kaleidoscope | |
Load Address: 0x109dc6000 | |
Identifier: com.blackpixel.kaleidoscope | |
Version: 2.1.0 (133.01) | |
Code Type: X86-64 | |
Parent Process: ??? [1] | |
Date/Time: 2015-03-11 15:20:05.265 -0700 |
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
* _ | |
_( )_ | |
(_(%)_) | |
(_)\ | |
| __ | |
HAPPY |/_/ | |
BIRTHDAY | | |
ORTA | |