Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
Install Package Control for easy package management.
Ctrl+`
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name="$inputline" | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url="$inputline" |
#define NUMARGS(...) (sizeof((id[]){__VA_ARGS__})/sizeof(id)) | |
#define $(...) ([NSString concatenateObjectsWithObjectCount:NUMARGS(__VA_ARGS__) objectList:__VA_ARGS__]) | |
#import <Foundation/Foundation.h> | |
@interface NSString (SyntacticSugar) | |
+ (instancetype)concatenateObjectsWithObjectCount:(NSInteger)count objectList:(id)firstObject, ...; | |
@end |
#!/bin/sh | |
# Script for managing build and version numbers using git and agvtool. | |
# Change log: | |
# v1.0 18-Jul-11 First public release. | |
# v1.1 29-Sep-12 Launch git, agvtool via xcrun. | |
version() { |
myArray = @[ item1, item2, item3 ]; | |
myDict = @{ key1: value1, key2: value2 }; |
// Old way | |
NSDictionary *oldDict = [NSDictionary dictionaryWithObjectsAndKeys: value1, key1, value2, key2, nil]; | |
// New way | |
NSDictionary *newDict = @{ key1: value1, key2: value2 }; |
// | |
// NSObject+subscripts.h | |
// Created by Martin Santiago on 7/26/12. | |
// | |
#import <Foundation/Foundation.h> | |
// Add support for subscripting to the iOS 5 SDK. | |
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 60000 | |
@interface NSObject (subscripts) |