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
#!/bin/sh | |
PLIST_BUDDY=/usr/libexec/PlistBuddy | |
function add_compatibility() { | |
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
"$1/Contents/Info.plist" | |
} | |
function has_compatibility() { |
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
// | |
// SNGUserPhotosController.m | |
// Singles-eHarmony | |
// | |
// Created by Jack Flintermann | |
// Copyright (c) 2012 eHarmony. All rights reserved. | |
// | |
// | |
// 77$Z8DD88O8ZZOZ7II77II?????+++++++====================+=++++++?????7?I77O$$777II | |
// $7$O8D8O88OZ$$77IIIII????++++++++=======================++++++??????II77$$$77III |
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
// | |
// main.swift | |
// pggrep | |
// | |
// Created by Erica Sadun on 6/17/15. | |
// Copyright © 2015 Erica Sadun. All rights reserved. | |
// | |
import Foundation |
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
// | |
// main.swift | |
// pggrep | |
// | |
// Created by Erica Sadun on 6/17/15. | |
// Copyright © 2015 Erica Sadun. All rights reserved. | |
// | |
import Foundation |
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
enum UIStackViewDistribution : Int { | |
case Fill | |
case FillEqually | |
case FillProportionally | |
case EqualSpacing | |
case EqualCentering | |
} |
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
enum UIStackViewAlignment : Int { | |
case Fill | |
case Leading | |
static var Top: UIStackViewAlignment { get { return .Leading} } | |
case FirstBaseline | |
case Center | |
case Trailing | |
static var Bottom: UIStackViewAlignment { get{ return .Trailing} } | |
case LastBaseline | |
} |
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
Hey Postable Guys! | |
First off, love your product, its amazing. You saved my fiancée and I a ton of time. My bride to be created a private Facebook event, posted a link for people to provide their contact info in the event, and within a few weeks we had 100% of the addresses we needed in Postable. We are planning to send our thank you cards with your service after we get married in January. | |
I hit you guys up on twitter this weekend (https://twitter.com/iAmChrisTruman/status/396698964008771584) regarding a Postable API or remote export options. This weekend, my fiancée and I were at AngelHackLA (https://apphack13la.eventbrite.com/) were building a product we call Wedmail that would make designing and sending Save the Date Postcards as easy as posting to Instagram. | |
I read through your twitter history and saw that people have been requesting features like RSVP’s or Save the Dates and it sounds like you are already thinking of building some of these features into Postable. We are planning to build out Wed |
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 UserResponse { | |
var _id : String | |
var first_name : String | |
var last_name : String | |
init(JSON: [String : AnyObject]) { | |
_id = JSON["_id"] as! String | |
first_name = JSON["first_name"] as! String | |
last_name = JSON["last_name"] as! 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
class Client { | |
var baseURL = "http://dev.whatever.com/" | |
func execute(request : Request, completionHandler: (Response<AnyObject, NSError>) -> Void){ | |
Alamofire.request(request.method, baseURL + request.path, parameters: request.parameters()) | |
.responseJSON { response in | |
completionHandler(response) | |
} | |
} | |
} |
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 Alamofire | |
protocol Request { | |
var path : String { get } | |
var method : Method { get } | |
func parameters() -> [String : AnyObject] | |
} | |
struct AuthRequest : Request { | |
let path = "auth" |
OlderNewer