This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
# Toggles the hidden flag on the partition. I don't want it visible on my desktop | |
sudo /Developer/Tools/SetFile -a V /Volumes/BOOTCAMP # or whatever the partitions called |
/* | |
File: KeychainItemWrapper.h | |
Abstract: | |
Objective-C wrapper for accessing a single keychain item. | |
Version: 1.2 - ARCified | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
Inc. ("Apple") in consideration of your agreement to the following | |
terms, and your use, installation, modification or redistribution of |
/* | |
File: KeychainItemWrapper.h | |
Abstract: | |
Objective-C wrapper for accessing a single keychain item. | |
Version: 1.2 - ARCified | |
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple | |
Inc. ("Apple") in consideration of your agreement to the following | |
terms, and your use, installation, modification or redistribution of |
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 |
source ~/.bash_profile | |
hash oclint &> /dev/null | |
if [ $? -eq 1 ]; then | |
echo >&2 "oclint not found, analyzing stopped" | |
exit 1 | |
fi |
#!/usr/bin/ruby | |
require 'optparse' | |
def main | |
argv = {} | |
OptionParser.new do |opt| | |
opt.on('--previous VALUE') do |v| | |
argv[:previous] = v |
#import <CoreLocation/CoreLocation.h> | |
#import <ImageIO/ImageIO.h> | |
@interface CLLocation (EXIFGPS) | |
- (NSDictionary*) EXIFMetadataWithHeading:(CLHeading*)heading; | |
@end | |
@interface NSDate (EXIFGPS) |
@implementation NSString (XMLSafe) | |
- (NSString *)xmlSafeString { | |
static NSMutableCharacterSet *invalidSet = nil; | |
if (!invalidSet) { | |
// XML Character Range definition (http://www.w3.org/TR/2008/REC-xml-20081126/#charsets) | |
// Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] | |
invalidSet = [[NSMutableCharacterSet characterSetWithRange:NSMakeRange(0x9, 1)] retain]; | |
[invalidSet addCharactersInRange:NSMakeRange(0xA, 1)]; | |
[invalidSet addCharactersInRange:NSMakeRange(0xD, 1)]; |