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
{ | |
"title": "Barcelona: La Pedrera", | |
"visbility": "public", | |
"visibility": "public" | |
} |
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
{ | |
"title": "Supermoon Eclipse at 38,000 ft", | |
"visbility": "public", | |
"visibility": "public" | |
} |
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
{ | |
"title": "Sunset at Twin Peaks", | |
"visbility": "public", | |
"visibility": "public" | |
} |
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
# usage: copy a bunch of jpgs into a directory | |
# run this script inside that directory | |
DATE=`date "+%Y-%m-%d"` | |
UUID=`uuidgen` | |
# use same UUID on subsequent runs of script | |
if [ -f "UUID" ]; then | |
UUID=`cat UUID` | |
else |
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
{ | |
"title": "First Post: Jules Verne", | |
"visbility": "public", | |
"visibility": "public" | |
} |
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
/* | |
* _heavily_ inspired by http://www.atimi.com/simple-json-parsing-swift-2/ | |
* and updated for Swift 2.0 | |
*/ | |
import Foundation | |
public enum SimpleJSON { | |
case Array([SimpleJSON]) | |
case Dictionary([Swift.String: SimpleJSON]) |
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
{ | |
"title": "Swift models as structs or classes?", | |
"timestamp": "2015-07-17T20:18:46.000Z", | |
"visbility": "public", | |
"visibility": "public" | |
} |
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
// why does this not compile? | |
// Book implements BookRenderable | |
// so why does the compiler complain when Library.books is a [Book] and LibraryRenderable is looking for [BookRenderable] ?? | |
protocol LibraryRenderable { | |
var address : String? { get } | |
var books : [BookRenderable]? { get } | |
} | |
protocol BookRenderable { |
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
struct EmailAddress { | |
let address : String | |
let domain : String | |
init(address : String, domain : String) { | |
self.address = address.lowercaseString | |
self.domain = domain.lowercaseString | |
} | |
} |
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
{ | |
"title": "iPad Multitasking Size Classes", | |
"timestamp": "2015-06-20T21:30:16.000Z", | |
"visbility": "public", | |
"visibility": "public" | |
} |