An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| // | |
| // NSManagedObject+KeyedSubscript.h | |
| // | |
| // Created by Jeremy Quinn on 25/05/2013. | |
| // Copyright (c) 2013 FiveOne.org. All rights reserved. | |
| // | |
| #import <CoreData/CoreData.h> | |
| @interface NSManagedObject (KeyedSubscript) |
| # (File moved to https://github.com/ole/Storyboard-Strings-Extraction) |
| Basically, UIPasteBoard allows us to share data to other application. Below is an example of UIpasteBoard usage. | |
| COPY | |
| UIPasteboard *appPasteBoard = [UIPasteboard generalPasteboard]; | |
| appPasteBoard.persistent = YES; | |
| [appPasteBoard setString:@"STRING TO COPY"]; | |
| PASTE |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
| #!/bin/sh | |
| # Current as working as of 2012/4/17 | |
| # Xcode 4.3.2 | |
| PROJECT_ROOT="$HOME/SomeDirWhereYourProjectLives/XXXXXXXX" | |
| WORKSPACE="$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace" | |
| CONFIG="AdHoc" | |
| SCHEME="XXXXXXXX" |
| 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' => '[email protected]' } | |
| 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 |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| import socket, ssl, json, struct | |
| import binascii | |
| # device token returned when the iPhone application | |
| # registers to receive alerts | |
| deviceToken = '39cac56f 986a0e66 3c4fd4f4 68df5598 024d2ca3 8b9f307c 741c180e 9fc30c62' | |
| thePayLoad = { | |
| 'aps': { | |
| 'alert':'Oh no! Server\'s Down!', |
| /* | |
| Distributed under The MIT License: | |
| http://opensource.org/licenses/mit-license.php | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to |