Skip to content

Instantly share code, notes, and snippets.

View rjstelling's full-sized avatar
🕶️
Encrypting Bits

Richard Stelling rjstelling

🕶️
Encrypting Bits
View GitHub Profile
@rjstelling
rjstelling / iOS 6 Features
Created September 19, 2012 14:31
iOS 6 Features listed by country (alphabetically), not by feature as is the case on Apple's website, http://www.apple.com/ios/feature-availability/
Afghanistan
Maps: Standard
Maps: Satellite
Albania
Maps: Standard
Maps: Satellite
Maps: Directions
Maps: Turn-by-Turn Navigation
@rjstelling
rjstelling / iOS Support Matrix Text (english)
Created December 3, 2012 13:40
This is the text that needs translating so we can release localised versions of the iOS Support Matrix. Feel free to fork and translate: http://www.empiricalmagic.com/post/34832825209/ios-support-matrix-v2-0-winter-2012
iOS Support Matrix
Winter 2012 Edition - v2.0
iPhone June 2007
iPod touch Sept 2007, Feb 2008 (32GB only)
iPhone 3G July 2008
iPod touch (2nd Generation) Sept 2008 Sept 2009 - (8GB only)
iPhone 3GS June 2009
iPod touch (3rd Generation) Sept 2009
iPad April 2010
iPhone 4 June 2010
//
// NSString+Verbose.h
//
// An NSString category for overly verbose methods that have little or no practical application.
//
@interface NSString (Verbose)
- (BOOL)isNotEqualToString:(NSString *)aString;
@rjstelling
rjstelling / cs_xproj_validate.sh
Last active October 9, 2019 12:05
SEE: https://github.com/rjstelling/Xcode-Project-Validate. A very simple shell script to read .xcodeproj files and check if there are issues with the CODE_SIGN_IDENTITY. Having multiple entries can cause build errors (especially when Archiving or command line building). Link to StackOverflow question answering some questions about when and why t…
# /bin/bash
#Usage: $ ./cs_xproj_validate.sh path/to/xcode/project/file/theproject.xcodeproj
#More info: http://stackoverflow.com/q/13962341/89035
PROJECT_FILE="$1/project.pbxproj"
PREVIOUS_LINE=-1
for LINE in `cat "$PROJECT_FILE" | grep -n CODE_SIGN_IDENTITY | grep -o -E '^([0-9]*)'`
@rjstelling
rjstelling / SuccinctObjCMacros.h
Last active December 15, 2015 04:50
Macros to make Objective-C more C-like. Feel free to fix bugs or add new macros.
// Make a [UI]ViewController by just passing the name, the .xib needs to have the same name as the Class howerver (Xcode default)
#define MakeViewController(class_and_nib_name) [[class_and_nib_name alloc] initWithNibName:[NSString stringWithUTF8String:#class_and_nib_name] bundle:nil]
//
// TRVViewController.m
// AttString
//
// Created by Richard Stelling on 02/05/2013.
// Copyright (c) 2013 Richard Stelling. All rights reserved.
//
#import "TRVViewController.h"

Keybase proof

I hereby claim:

  • I am rjstelling on github.
  • I am rjstelling (https://keybase.io/rjstelling) on keybase.
  • I have a public key whose fingerprint is C753 58A5 B202 D1C8 1613 84A9 F1D3 5EA3 1C57 A79D

To claim this, I am signing this object:

// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// Prerequisite:
// First, create at least a 1024x1024 px PNG file according to:
// http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BuildTimeConfiguration/BuildTimeConfiguration.html
//
// Install - Save Create Icons.jsx to:
// Win: C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS5\SDK
// Mac: /Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS5/SDK
// * Restart Photoshop
@rjstelling
rjstelling / xmas-cracker-jokes.markdown
Last active August 29, 2015 14:11
Christmas Cracker Jokes — This work is licensed under a Creative Commons Attribution 4.0 International License. http://creativecommons.org/licenses/by/4.0/

How many Gamers does is take to change a light bulb?

Actually, its about ethics in games journalism


//
// CommonMacros.h
// Created by Tom Adriaenssen (@inferis)
// Inspired by the awesome work by Piet Jaspers (@pjaspers)
//
/*
* How to use this file:
* 1. Find your .pch file
* 2. Import this file