This file contains 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
/* | |
Copyright 2011 Martin Hawksey | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
This file contains 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
/****h* Functions | |
FUNCTION | |
In order to use Linea in your program, several steps have to be performed: | |
- Include LineaSDK.h and libLineaSDK.a in your project. | |
- Go to Frameworks and add ExternalAccessory framework | |
- Edit your program plist file, add new element and select "Supported external accessory protocols" from the list, then add two items to it - \ | |
com.datecs.linea.pro.msr and com.datecs.linea.pro.bar | |
*****/ | |
/****h* Barcode Engine | |
FUNCTION |
This file contains 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
-- TweetViaTweetbot.applescript | |
-- Copy title and URL in the front most window of Safari to Tweetbot with link | |
-- Author: Romain Briche | |
on copyTitleAndLinkToTweetbot(theTitle, theURL) | |
tell application "System Events" | |
set tweet to theTitle & " " & theURL & " via @" | |
set the clipboard to tweet as text |
This file contains 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
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
@interface AZModel : NSObject | |
+ (AZModel *)sharedModel; | |
- (__strong NSManagedObjectContext *)managedObjectContextForCurrentThread; | |
- (__autoreleasing NSManagedObjectContext *)newManagedObjectContextForCurrentThread; | |
@end |
This file contains 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
// | |
// NSObject+setValuesForKeysWithJSONDictionary.h | |
// SafeSetDemo | |
// | |
// Created by Tom Harrington on 12/29/11. | |
// Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains 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
// | |
// IPInsetLabel.h | |
// Instapaper | |
// | |
// Created by Marco Arment on 7/23/11. | |
// Copyright 2011 Instapaper LLC, released to the public domain. | |
// | |
#import <UIKit/UIKit.h> |
This file contains 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
// Ok, this stuff is straight out of http://pspdfkit.com/ | |
// Business-like it's probably not a good idea to share this | |
// but I just really love helping people and open sourcing stuff. | |
// Consider this snipped licensed under MIT, by Peter Steinberger. | |
// http://www.opensource.org/licenses/mit-license.php | |
// This uses all kinds of nasty private API, but I don't see another way. | |
// I tried to extract the mp4 URL in this project, https://github.com/steipete/PSYouTubeExtractor, | |
// but it required *lots* of hacks, is slow, and doesn't worked very well on iOS5. | |
// Turns out, Google _really_ doesn't want people access to their mp4 sources. |
This file contains 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
#import "TBXML.h" | |
@interface TBXML (TBXML_NSDictionary) | |
+ (NSDictionary*)dictionaryWithXMLNode:(TBXMLElement*)element; | |
+ (NSDictionary*)dictionaryWithXMLData:(NSData*)data; | |
@end |
NewerOlder