THIS PROJECT HAS MOVED to an actual repository at https://github.com/nevyn/SPMediaKeyTap.
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
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
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
@interface UIImage(ImmediateLoad) | |
+ (UIImage*)imageImmediateLoadWithContentsOfFile:(NSString*)path; | |
@end | |
@implementation UIImage(ImmediateLoad) | |
+ (UIImage*)imageImmediateLoadWithContentsOfFile:(NSString*)path { | |
UIImage *image = [[UIImage alloc] initWithContentsOfFile:path]; |
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
using System; | |
using Excel = Microsoft.Office.Interop.Excel; | |
namespace Helpers.Vsto | |
{ | |
public sealed class WorkbookClosedMonitor | |
{ | |
internal class CloseRequestInfo | |
{ | |
public CloseRequestInfo(string name, int count) |
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
// DySlim is complicated and requires writing 6GB to disk (if only temporarily). | |
// This lets you mount the dyld shared cache via FUSE; the resulting files are weird but readable by things like otool and strings. | |
// | |
// gcc -std=gnu99 -I/opt/local/include -L/opt/local/lib -D_FILE_OFFSET_BITS=64 -o dsc dsc.c -lfuse -framework CoreFoundation | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <stdio.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
#!/usr/bin/env python | |
# Nicolas Seriot | |
# 2011-01-06 | |
# https://gist.github.com/768457 | |
""" | |
Input: path of an Objective-C project | |
Output: import dependancies Graphviz format |
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
// | |
// main.m | |
// ProtectTest | |
// Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation. | |
// | |
// Must be compiled with Thumb disabled | |
// | |
// Created by Stuart Carnie on 3/4/11. | |
// Copyright 2011 Manomio LLC. All rights reserved. | |
// |
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
// Hosey_warnings.xcconfig | |
// see http://boredzo.org/blog/archives/2009-11-07/warnings | |
// http://rentzsch.tumblr.com/post/237349423/hoseyifyxcodewarnings-scpt | |
// http://tewha.net/2010/11/xcode-warnings/ | |
GCC_TREAT_WARNINGS_AS_ERRORS = YES | |
GCC_WARN_64_TO_32_BIT_CONVERSION = YES | |
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES | |
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES | |
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES |
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
#!/usr/bin/env python | |
#--------- | |
# Script to change the prefix of a framework | |
#--------- | |
import os | |
import re | |
import string |
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
@interface NSManagedObjectContext (AQFixedCountForFetchRequestOnIOS32) | |
@end | |
@implementation NSManagedObjectContext (AQFixedCountForFetchRequestOnIOS32) | |
+ (void) load | |
{ | |
// +load gets called per-category, unlike +initialize | |
if ( [[[UIDevice currentDevice] systemVersion] compare: @"4.0" options: NSNumericSearch] == NSOrderedAscending ) | |
{ |
OlderNewer