Skip to content

Instantly share code, notes, and snippets.

-module(rest).
-include("/usr/local/Cellar/erlang/R16B01/lib/erlang/lib/stdlib-1.19.2/include/qlc.hrl").
-include("/usr/local/lib/yaws/include/yaws_api.hrl").
-export([out/1, addAirport/4, handle/2]).
-compile(export_all).
-define(RECORD_TYPE, airport).
-define(RECORD_KEY_FIELD, code).
-record(?RECORD_TYPE, {?RECORD_KEY_FIELD, city, country, name}).
Pod::Spec.new do |s|
s.name = 'XINGAPI'
s.version = '0.0.4'
s.license = 'MIT'
s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.7'
s.summary = 'The official Objective-C client for the XING API'
s.author = {
'XING iOS Team' => '[email protected]'
}
Pod::Spec.new do |s|
s.name = 'SFHFKeychainUtils'
s.version = '0.0.1'
s.summary = 'SciFiHiFi Utilities for manipulating the keychain.'
s.homepage = 'https://github.com/ldandersen/scifihifi-iphone/tree/master/security'
s.author = { 'Buzz Andersen' => '[email protected]' }
s.source = { :git => 'https://github.com/nerdishbynature/scifihifi-iphone.git', :commit => 'f295d348651349e097fe99ac0183d523a2a7b240' }
s.source_files = 'security'
s.framework = 'Security'
Pod::Spec.new do |s|
s.name = 'ITPullToRefreshScrollView'
s.version = '0.0.1'
s.platform = :osx, '10.8'
s.license = 'MIT'
s.summary = 'ITPullToRefreshScrollView is a subclass of NSScrollView which allows iOS 7 style refreshing by pulling.'
s.author = {
'Ilija Tovilo' => '[email protected]'
}
s.source = {
Pod::Spec.new do |s|
s.name = 'SSToolkit'
s.version = '1.0.4'
s.platform = :ios
s.summary = 'A collection of well-documented iOS classes for making life easier.'
s.homepage = 'http://sstoolk.it'
s.author = { 'Sam Soffes' => '[email protected]' }
s.source = { :git => 'https://github.com/soffes/sstoolkit.git', :tag => "v#{s.version}" }
s.description = 'SSToolkit is a collection of well-documented iOS classes for making life ' \
'easier by solving common problems all iOS developers face. Some really ' \

CocoaPods generate command

NOTE: This doc is mainly inspired by the Rails Application Templates documentation.

1. Usage

When using CocoaPods to generate a new Xcode project you can either use our default template or provide one yourself. Templates can be specified with a path or an URL.

$ pod generate Sample http://example.com/my_cocoapods_template.rb
Pod::Spec.new do |s|
s.name = "OctoKit"
s.version = "0.4.3"
s.summary = "GitHub API client for Objective-C."
s.homepage = "https://github.com/octokit/octokit.objc"
s.license = "MIT"
s.author = { "GitHub" => "[email protected]" }
s.source = {
@pietbrauer
pietbrauer / location.swift
Created June 22, 2014 18:07
I am getting the following error "Cannot convert the expression's type 'Void' to type 'String!'" when trying to call https://github.com/xing/XNGAPIClient/blob/master/XNGAPIClient/XNGAPIClient%2BGeoLocations.h#L31-L37
XNGAPIClient.sharedClient().putUpdateGeoLocationForUserID("me", accuracy: 3000, latitude: location.coordinate.latitude as CGFloat, longitude: location.coordinate.longitude as CGFloat, ttl: 420, success: { (JSON: AnyObject!) in }, failure: { (error: NSError!) in })
@pietbrauer
pietbrauer / MD5.swift
Created August 10, 2014 16:59
NSString & NSData to MD5
import Foundation
extension NSData {
func MD5() -> NSString {
let digestLength = Int(CC_MD5_DIGEST_LENGTH)
let md5Buffer = UnsafeMutablePointer<CUnsignedChar>.alloc(digestLength)
CC_MD5(bytes, CC_LONG(length), md5Buffer)
var output = NSMutableString(capacity: Int(CC_MD5_DIGEST_LENGTH * 2))
for i in 0..<digestLength {
@pietbrauer
pietbrauer / timer.swift
Created August 14, 2014 21:03
Usage of NSTimer in Swift
import Foundation
class Timer {
var timer: NSTimer?
var elapsedTime = 0.0
func start() {
elapsedTime = 0.0
timer = NSTimer(timeInterval: 1.0, target: self, selector: "timerFired:", userInfo: nil, repeats: true)
NSRunLoop.currentRunLoop().addTimer(timer, forMode: NSRunLoopCommonModes)