Skip to content

Instantly share code, notes, and snippets.

View tonyarnold's full-sized avatar

Tony Arnold tonyarnold

View GitHub Profile
@tonyarnold
tonyarnold / atom
Created March 12, 2014 23:53
GitHub's Atom expects to be in `/Applications` — I prefer to keep it in `~/Applications` with other non-AppStore apps. Unfortunately, this means that the command line `atom` command won't work out of the box. Update your copy of `/usr/local/bin/atom` to the following to have it work as expected no matter where it's installed on your Mac!
#!/bin/sh
ATOM_PATH=${ATOM_PATH-$(mdfind "kind:app Atom")}
ATOM_BINARY=$ATOM_PATH/Contents/MacOS/Atom
if [ ! -d $ATOM_PATH ]; then sleep 5; fi # Wait for Atom to reappear, Sparkle may be replacing it.
if [ ! -d $ATOM_PATH ]; then
echo "Atom application not found at '$ATOM_PATH'" >&2
exit 1
fi
// Refresh user details on initial creation of client
[[fetchedClient fetchCurrentUser] subscribeNext:^(ANKUser *user) {
@strongify(self);
// Do something with context such as save here…
} error:^(NSError *error) {
NSLogError(error);
}];
@interface MyClass : NSObject
@property (readonly, nonatomic, strong) Type propertyName;
@end
@interface MyClass ()
// Private Access
@property (readwrite, nonatomic, strong) Type propertyName;
Pod::Spec.new do |s|
s.name = 'MagicalRecord'
s.version = '3.0dev'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.summary = 'Super Awesome Easy Fetching for Core Data 1!!!11!!!!1!.'
s.homepage = 'http://github.com/magicalpanda/MagicalRecord'
s.author = { 'Saul Mora' => '[email protected]' }
s.source = { :git => 'https://github.com/tonyarnold/MagicalRecord.git', :branch => 'release/3.0' }
s.description = 'Handy fetching, threading and data import helpers to make Core Data a little easier to use.'
s.framework = 'CoreData'
---
BasedOnStyle: WebKit
AccessModifierOffset: -2
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
  1. Install Xcode from the Mac App Store — don't install the version from Apple's Developer Site, you won't get delta updates;
  2. Install Homebrew — it's a package manager that will let you easily install, update and remove services and other tools;
  3. Use brew to install mysql: brew install mysql;
  4. If you want to use .dev and other wildcard local domains, there are plenty of guides but be sure to following something that is specifically for OS X Mavericks. The DNS services have changed a lot between major releases of the OS, and the instructions for pre-10.9 systems won't work. This one looks fine to me (and uses homebrew to install dependencies).
  5. Don't fuck with the default web root — just roll with the default of whatever you choose to use. Usually on OS X, this is /Library/WebServer/Documents.

I prefer Nginx — it's smaller, lighter and faster than Apac

Pod::Spec.new do |s|
s.name = "libextobjc"
s.version = "0.3a"
s.summary = "A Cocoa library to extend the Objective-C programming language."
s.homepage = "https://github.com/jspahrsummers/libextobjc"
s.author = { "Justin Spahr-Summers" => "[email protected]" }
s.source = { :git => "https://github.com/jspahrsummers/libextobjc.git", :tag => s.version.to_s }
s.requires_arc = true
# Provided as a convenience but not requiring all the subspecs because it would be redundant
//
// RVNReceiptValidation.m
//
// Created by Satoshi Numata on 12/06/30.
// Copyright (c) 2012 Sazameki and Satoshi Numata, Ph.D. All rights reserved.
//
// This sample shows how to write the Mac App Store receipt validation code.
// Replace kRVNBundleID and kRVNBundleVersion with your own ones.
//
// This sample is provided because the coding sample found in "Validating Mac App Store Receipts"
Pod::Spec.new do |s|
s.name = "RXCollections"
s.version = "1.2.1"
s.summary = "map, filter, fold, and detect for Cocoa collections."
s.homepage = "https://github.com/robrix/RXCollections"
s.license = { :type => "BSD", :file => "LICENSE" }
s.author = { "Rob Rix" => "[email protected]" }
s.source = { :git => "https://github.com/robrix/RXCollections.git", :tag => "#{s.version}" }
s.source_files = "RXCollections/*.{h,m}", "External/**/*.{h,m}"
s.requires_arc = true
Pod::Spec.new do |s|
s.name = "ReactiveCocoaIO"
s.version = "0.0.1"
s.summary = "Reactive file management framework built on top of ReactiveCocoa."
s.homepage = "https://github.com/ReactiveCocoa/ReactiveCocoaIO"
s.author = { "ReactiveCocoa" => "ReactiveCocoa" }
s.source = { :git => "https://github.com/zakdances/ReactiveCocoaIO.git", :commit => "7088c256fa55afe98dd60c880fa755fb4dc8265b" }
s.license = 'Simplified BSD License'
s.description = "ReactiveCocoaIO is a framework for accessing and manipulating a file system through signals, based on ReactiveCocoa."