Skip to content

Instantly share code, notes, and snippets.

View triage's full-sized avatar

Eric Schulte triage

View GitHub Profile
@mackuba
mackuba / wwdc15.md
Last active August 6, 2022 17:28
New stuff from WWDC 2015

Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.

If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.

OS X El Capitan

http://www.apple.com/osx/elcapitan-preview/

  • split view - two apps side by side on full screen
@oleganza
oleganza / async_swift_proposal.md
Last active May 12, 2023 10:06
Concrete proposal for async semantics in Swift

Async semantics proposal for Swift

Modern Cocoa development involves a lot of asynchronous programming using blocks and NSOperations. A lot of APIs are exposing blocks and they are more natural to write a lot of logic, so we'll only focus on block-based APIs.

Block-based APIs are hard to use when number of operations grows and dependencies between them become more complicated. In this paper I introduce asynchronous semantics and Promise type to Swift language (borrowing ideas from design of throw-try-catch and optionals). Functions can opt-in to become async, programmer can compose complex logic involving asynchronous operations while compiler produces necessary closures to implement that logic. This proposal does not propose new runtime model, nor "actors" or "coroutines".

Table of contents

@swisspol
swisspol / gist:c87046f97169c7af0607
Created February 6, 2015 07:59
Xcode Bot Environment Variables
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.yi2ylKg124/Render
HOME=/var/_xcsbuildd
LOGNAME=_xcsbuildd
PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin
PWD=/Library/Developer/XcodeServer/Integrations/Caches/c9e0e876ef9dbb996df76e73d3ac8ad1/Source
SHELL=/bin/false
SHLVL=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.CChp5yaB4Q/Listeners
TMPDIR=/var/folders/df/_sxbhzn54s34nb_bvkc68xfc000086/T/
USER=_xcsbuildd
@bendjones
bendjones / Xcode-betabuilder-slack-post-archive
Created January 9, 2015 18:25
Xcode Bot Server Post-Archive action script to generate builds using Beta Builder and notify Slack
# BEGIN EDITABLE AREA
# replace with slack hook URL for slack support
SLACK_HOOK_URL="https://hooks.slack.com/services/RELACE_WITH_FULL_HOOK_URL"
# check if we're running as the bot or as an archive step from xcode, change as needed
if [ "${INSTALL_OWNER}" = "_xcsbuildd" ]
then
BETA_OUTPUT_FOLDER="/usr/local/var/www/${PRODUCT_NAME}/${FULL_VERSION}"
BETA_LATEST_FOLDER="/usr/local/var/www/${PRODUCT_NAME}/latest"
@interface SomeViewController ()
// Declare some collection properties to hold the various updates we might get from the NSFetchedResultsControllerDelegate
@property (nonatomic, strong) NSMutableIndexSet *deletedSectionIndexes;
@property (nonatomic, strong) NSMutableIndexSet *insertedSectionIndexes;
@property (nonatomic, strong) NSMutableArray *deletedRowIndexPaths;
@property (nonatomic, strong) NSMutableArray *insertedRowIndexPaths;
@property (nonatomic, strong) NSMutableArray *updatedRowIndexPaths;
@end