Skip to content

Instantly share code, notes, and snippets.

View zwaldowski's full-sized avatar

Zachary Waldowski zwaldowski

View GitHub Profile
@zwaldowski
zwaldowski / TestFlight.podspec
Created April 7, 2012 15:12
TestFlight CocoaPod
Pod::Spec.new do |s|
s.name = 'TestFlightSDK'
s.version = '1.1b3'
s.license = 'Commercial'
s.summary = 'TestFlightSDK for over-the-air beta testing and crash reporting.'
s.homepage = 'http://www.testflightapp.com'
s.author = { 'TestFlight' => 'support@testflightapp.com' }
s.source = { :http => 'https://d3fqheiq7nlyrx.cloudfront.net/sdk-downloads/TestFlightSDK1.1beta3.zip' }
s.description = 'TestFlightSDK for over-the-air beta testing and crash reporting.'
s.platform = :ios
@zwaldowski
zwaldowski / SYCache.podspec
Created April 15, 2012 20:36
SYCache CocoaPod
Pod::Spec.new do |s|
s.name = 'SYCache'
s.version = '1.0'
s.license = 'MIT'
s.summary = 'Fancy caching with on-disk persistence'
s.homepage = 'https://github.com/Synthetic/SYCache'
s.author = { 'Sam Soffes' => 'sam@samsoff.es' }
s.source = { :git => 'https://github.com/Synthetic/SYCache.git', :commit => 'origin/master' }
s.source_files = 'SYCache.{h,m}'
s.description = 'Simple in memory and on disk cache. It\'s backed by an NSCache in memory, ' \
@zwaldowski
zwaldowski / SSPullToRefresh.podspec
Created April 19, 2012 15:05
SSPullToRefresh CocoaPod
Pod::Spec.new do |s|
s.name = 'SSPullToRefresh'
s.version = '1.0'
s.license = 'MIT'
s.summary = 'There are lots of pull to refresh views, this one is Sam\'s.'
s.homepage = 'https://github.com/samsoffes/sspulltorefresh'
s.author = { 'Sam Soffes' => 'sam@samsoff.es' }
s.source = { :git => 'https://github.com/samsoffes/sspulltorefresh.git', :commit => 'origin/master' }
s.source_files = 'SSPullToRefresh.h', 'SSPullToRefreshView.{h,m}', 'SSSimplePullToRefreshContentView.{h,m}'
s.requires_arc = true
@zwaldowski
zwaldowski / test.m
Created July 13, 2012 17:44 — forked from mikeash/test.m
Cocoa array slicing
// clang -framework Foundation -fobjc-arc -O3 test.m
#import <Foundation/Foundation.h>
@interface NSNumber (RangeCreation)
- (NSValue *): (NSInteger)length;
@end
@zwaldowski
zwaldowski / use-nsscreen-backingscalefactor-hidpi.diff
Created August 18, 2012 18:04
Patch for better Hi-DPI support in GTK
diff --git gdk/quartz/gdkscreen-quartz.c gdk/quartz/gdkscreen-quartz.c
index eafaf20..1cf98e2 100644
--- gdk/quartz/gdkscreen-quartz.c
+++ gdk/quartz/gdkscreen-quartz.c
@@ -75,8 +75,17 @@ gdk_quartz_screen_init (GdkQuartzScreen *quartz_screen)
NSScreen *nsscreen;
nsscreen = [[NSScreen screens] objectAtIndex:0];
- gdk_screen_set_resolution (screen,
- 72.0 * [nsscreen userSpaceScaleFactor]);
@zwaldowski
zwaldowski / SMCalloutView.podspec
Created August 23, 2012 02:05
SMCalloutView podspec
Pod::Spec.new do |s|
s.name = 'SMCalloutView'
s.version = '1.0'
s.license = 'Apache'
s.summary = 'SMCalloutView aims to be an exact replica of the private UICalloutView system control.'
s.homepage = 'https://github.com/nfarina/calloutview'
s.author = { 'Nick Farina' => 'nfarina@gmail.com' }
s.source = { :git => 'https://github.com/nfarina/calloutview.git', :commit => '3044746830bd2b7912a49b2138b30de770ae05c4' }
s.source_files = 'SMCalloutView.{h,m}'
s.frameworks = 'QuartzCore', 'CoreGraphics', 'UIKit'
@zwaldowski
zwaldowski / info.md
Created August 23, 2012 21:39
AZCoreRecord setup info

The local store is for local-only things, generated objects that shouldn't be synced. A ubiquitous store is never used until iCloud is enabled. The fallback store is used for everything that would otherwise be in iCloud, including when iCloud is never enabled. This is probably a mis-naming on my part. I'm open to suggestions.

The local store is added immediately the first time AZCoreRecordManager's managed object context or persistent store coordinator is accessed. Because the fallback and/or iCloud store might take longer, they are done later.

This technique is based off of Session 227 of WWDC 2012.

A typical initialization might look like this:

	AZCoreRecordManager *crm = [AZCoreRecordManager sharedManager];
@zwaldowski
zwaldowski / MapBox.podspec
Created August 24, 2012 03:25
MapBox modified pod spec
Pod::Spec.new do |m|
m.name = 'MapBox'
m.version = '0.4.1'
m.summary = 'Open source alternative to MapKit.'
m.description = 'Open source alternative to MapKit supporting custom tile sources, offline use, and complete cache control.'
m.homepage = 'http://mapbox.com/mobile'
m.license = 'BSD'
m.author = { 'Justin R. Miller' => 'justin@mapbox.com' }
@zwaldowski
zwaldowski / RNCryptor.podspec
Last active October 13, 2015 10:17
Modified RNCryptor spec for Mac
Pod::Spec.new do |s|
s.name = 'RNCryptor'
s.version = '2.1'
s.summary = 'An easy-to-use, Objective-C interface to the AES functionality of CommonCrypto.'
s.authors = {'Rob Napier' => 'robnapier@gmail.com'}
s.homepage = 'https://github.com/rnapier/RNCryptor'
s.license = {
:type => 'MIT',
:text => 'This code is licensed under the MIT License:
@zwaldowski
zwaldowski / Rebel.podspec
Created December 13, 2012 02:06
Draft spec for GitHub's Rebel
Pod::Spec.new do |s|
s.name = "Rebel"
s.version = "0.2"
s.summary = "Cocoa framework for improving AppKit."
s.homepage = "https://github.com/github/Rebel"
s.license = 'MIT'
s.author = { "GitHub" => "support@github.com" }
s.source = { :git => "https://github.com/github/Rebel.git", :branch => "master" }