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
- (void)analyzeImageWithCompletion:(void (^)(NSArray *values))block { | |
NSParameterAssert(block); | |
CFDataRef data = CGDataProviderCopyData(CGImageGetDataProvider(self.image.CGImage)); | |
UInt8 *buf = (UInt8 *)CFDataGetBytePtr(data); | |
size_t width = CGImageGetWidth(self.image.CGImage); | |
size_t height = CGImageGetHeight(self.image.CGImage); | |
NSMutableArray *amps = [NSMutableArray array]; |
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.c | |
// midiscroll | |
// | |
// Created by John Heaton on 10/6/13. | |
// Copyright (c) 2013 John Heaton. All rights reserved. | |
// | |
#include <CoreFoundation/CoreFoundation.h> | |
#include <CoreMIDI/CoreMIDI.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
// | |
// main.c | |
// lpfeedback | |
// | |
// Created by John Heaton on 3/23/13. | |
// Copyright (c) 2013 John Heaton. All rights reserved. | |
// | |
#include <CoreFoundation/CoreFoundation.h> | |
#include <CoreMIDI/CoreMIDI.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
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
typedef unsigned char byte_t; | |
typedef struct { | |
byte_t inst; | |
byte_t dest[4]; | |
} jmp_inst_t; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned char byte; | |
byte *memfnd(char *buffer, size_t buflen, char *pattern, size_t patlen) { | |
if(!buffer || !pattern || !buflen || !patlen || patlen > buflen) | |
return NULL; | |
for(unsigned long i=0;i<buflen;++i) { |
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
/* MarkThatMessage v0.1 beta for OS X | |
* Designed for use with Messages beta | |
* | |
* John Heaton | |
* [email protected] | |
* http://github.com/Gojohnnyboi | |
*/ | |
#import <Foundation/Foundation.h> | |
#import <AppKit/AppKit.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
Making all for tweak Locktopus... | |
Preprocessing Locktopus.xm... | |
Compiling Locktopus.xm... | |
In file included from Locktopus.xm:4: | |
./include/Locktopus/LPApplicationIconController.h:4: error: expected `:' before ‘class’ | |
./include/Locktopus/LPApplicationIconController.h:4: error: expected identifier before ‘class’ | |
./include/Locktopus/LPApplicationIconController.h:4: error: expected `:' before ‘SBApplicationIcon’ | |
./include/Locktopus/LPApplicationIconController.h:4: error: ‘SBIconView’ has not been declared | |
./include/Locktopus/LPApplicationIconController.h:5: error: expected unqualified-id before ‘class’ | |
./include/Locktopus/LPApplicationIconController.h:7: error: expected unqualified-id before ‘interface’ |
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
#include <stdio.h> | |
#include <sys/stat.h> | |
int main() { | |
printf("struct stat (%d bytes)\n\t" | |
"dev_t = %d;\n\t" | |
"ino_t = %d;\n\t" | |
"mode_t = %d;\n\t" | |
"nlink_t = %d;\n\t" | |
"uid_t = %d;\n\t" |
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
// | |
// AMDevice.m | |
// Can I Jailbreak? | |
// | |
// Created by John Heaton on 10/1/11. | |
// Copyright 2011 GJB Software. All rights reserved. | |
// | |
#import "AMDevice.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
#include <stdio.h> | |
#include <stdint.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
int main(int argc, const char *argv[]) { | |
struct stat st; |