Skip to content

Instantly share code, notes, and snippets.

View eliperkins's full-sized avatar
🍞
Let’s get this bread.

Eli Perkins eliperkins

🍞
Let’s get this bread.
View GitHub Profile
//: Playground - noun: a place where people can play
import UIKit
struct Todo {
let id: NSUUID
let text: String
let complete: Bool
}

Implementing a Strong Code-Review Culture

As an author

  • Provide more/sufficient context around changes
  • Linking to the issue isn't always enough
  • Challenge: 2 paragraphs of context

As a reviewer

  • Offer compliments in PRs when you learn or something is done well
  • Ask questions rather than make demands/commands, engage in conversation
@eliperkins
eliperkins / Helpshift-4.12.1.podspec.json
Last active August 29, 2015 14:26
Corrected Helpshift Podspec (supports `use_frameworks!`)
{
"name": "Helpshift",
"version": "4.12.1",
"summary": "Customer service helpdesk for mobile applications.",
"license": {
"type": "Commercial",
"text": "See http://www.helpshift.com/terms/"
},
"homepage": "http://www.helpshift.com/",
/** The token structure. */
typedef struct yaml_token_s {
/** The token type. */
yaml_token_type_t type;
/** The token data. */
union {
/** The stream start (for @c YAML_STREAM_START_TOKEN). */
RAC(self, results) = [self.searchCommand.executionSignals flattenMap:^(RACSignal *querySearchSignal) {
@strongify(self);
return [[querySearchSignal
concat:[self.searchMoreCommand.executionSignals concat]]
scanWithStart:@[] reduce:^(NSArray *running, NSArray *next) {
return [running arrayByAddingObjectsFromArray:next];
}];
}];
@eliperkins
eliperkins / Mantle.podspec.json
Last active August 29, 2015 14:04
Mantle.podspec.json
{
"name": "Mantle",
"version": "2.0",
"summary": "Model framework for Cocoa and Cocoa Touch.",
"homepage": "https://github.com/Mantle/Mantle",
"license": "MIT",
"authors": {
"GitHub": "support@github.com"
},
"source": {
@eliperkins
eliperkins / AFAmazonS3Client.podspec
Last active August 29, 2015 14:03
AFAmazonS3Client compatible with AFNetworking 2.2.x
Pod::Spec.new do |s|
s.name = "AFAmazonS3Client"
s.version = "2.2.0"
s.summary = "AFNetworking Client for the Amazon S3 API."
s.homepage = "https://github.com/AFNetworking/AFAmazonS3Client"
s.social_media_url = "https://twitter.com/AFNetworking"
s.license = 'MIT'
s.author = { "Mattt Thompson" => "m@mattt.me" }
s.source = { :git => "https://github.com/AFNetworking/AFAmazonS3Client.git",
:tag => "2.0.0" }
@eliperkins
eliperkins / gist:b367ec0aafc1ad42142d
Created June 6, 2014 19:09
UIView animateWithDuration in Swift
UIView.animateWithDuration(1) {
view.center = CGPoint(x: 500, y: 0)
view.alpha = 0
}

Entity

Entity operation

Request: GET /:entity

Required Scope:

Request Data:

{