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
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account! | |
✅ did:muport:Qmao5rVkcrh3XjPDwKUi73wje6dBnPMZ8d87EWkF4Y28vy ✅ | |
Create your profile today to start building social connection and trust online. https://3box.io/ |
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
// | |
// DefaultingDecoder.swift | |
// | |
// Created by Michael Gray on 10/12/17. | |
// | |
import Foundation | |
// swiftlint:disable force_cast file_length |
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
// | |
// RealmSwift+Codable.swift | |
// | |
// Created by Michael Gray on 8/16/17. | |
// | |
import Foundation | |
import RealmSwift | |
// swiftlint:disable line_length identifier_name |
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 FutureKit | |
private var startPromiseHandler = ExtensionVarHandler() | |
public extension Future { | |
fileprivate var startPromise : Promise<Void>? { | |
set(p) { | |
startPromiseHandler.setValueOn(self, value: p) | |
} | |
get { | |
return startPromiseHandler.getValueFrom(self) |
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
// | |
// RAC+Extensions.swift | |
// CoverPages | |
// | |
// Created by Morten Heiberg on 12/1/15. | |
// Copyright (c) 2015 Squarespace. All rights reserved. | |
// | |
import Foundation | |
import ReactiveCocoa |
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
// | |
// FutureKit+RAC.swift | |
// | |
// Created by Michael Gray on 9/10/15. | |
// | |
import Foundation | |
import ReactiveCocoa | |
import FutureKit |
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
// | |
// FutureKit+AlamoFire.swift | |
// | |
// Created by Michael Gray on 9/21/15. | |
// | |
import Foundation | |
import Alamofire | |
import FutureKit |
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
// ---------------------------------------------------------------------- | |
// MARK: NSErrorType protocol, with JSON extensions for NSError | |
// ---------------------------------------------------------------------- | |
/** so if you have a ErrorType var, and you want to test for NSError ex (e is NSError), it always succeeds. | |
it can sometimes be hard to test for NSError. | |
but you can test for protocol conformance. | |
so now: | |
e as? NSErrorType |
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
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script type='text/javascript'> | |
var _oai = function(a, c, d, e, g) { | |
if (a) | |
if (c) { | |
var h = Date.now(), | |
k = window.history.length, |
NewerOlder