This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TF_API_TOKEN: <your TestFlight API token> | |
| TF_TEAM_TOKEN: <your TestFlight team token> | |
| TF_DISTRIBUTION: <name of distribution list to notify> | |
| HOCKEY_APP_ID: <your HockeyApp public App ID> | |
| HOCKEY_APP_TOKEN: <your HockeyApp API token> | |
| DEVELOPER_PREFIX: <path to your developer directory, e.g., /Developer-4.2> | |
| ARCHIVE_DIRECTORY: <path for saving archived builds> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # (Above line comes out when placing in Xcode scheme) | |
| # | |
| API_TOKEN=<TestFlight API token here> | |
| TEAM_TOKEN=<TestFlight team token here> | |
| SIGNING_IDENTITY="iPhone Distribution: Development Seed" | |
| PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision" | |
| #LOG="/tmp/testflight.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/sh | |
| INFO=$( echo $PWD )/MyApp-Info | |
| TAG=$( git describe --tags `git rev-list --tags --max-count=1` ) | |
| COMMIT= | |
| GITPATH=/usr/bin:/usr/local/bin:/usr/local/git/bin | |
| PATH=$PATH:$GITPATH; export PATH | |
| if [ -z $( which git ) ]; then | |
| echo "Unable to find git binary in \$GITPATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| display-brightness.c | |
| gcc -o display-brightness display-brightness.c \ | |
| -framework IOKit -framework ApplicationServices | |
| */ | |
| #include <stdio.h> | |
| #include <IOKit/graphics/IOGraphicsLib.h> | |
| #include <ApplicationServices/ApplicationServices.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| You can use this to call deprecated methods without warnings (supporting old sdk's for example) | |
| or, you can use it in place of performSelector: where you need non-object params, or multiple | |
| params. | |
| ie: ... | |
| int result = 0; | |
| int index = 12; | |
| NSArray *array = myArray; |
NewerOlder