Skip to content

Instantly share code, notes, and snippets.

View yageek's full-sized avatar
🥨

Yannick Heinrich yageek

🥨
View GitHub Profile
{
"repo_token": "SsMwWVXBSQ3OA1ryIc1uAsIqtcVqXZ2rO",
"service_name": "travis-ci",
"sources_files": [
{
"name": "main.m",
"source": "//\n// main.m\n// Peeler\n//\n// Created by HEINRICH Yannick on 24/05/13.\n// Copyright (c) 2013 YaGeek's Company. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, char *argv[])\n{\n return NSApplicationMain(argc, (const char **)argv);\n}\n",
"coverage": [
null,
null,
@yageek
yageek / gist:4571481
Created January 19, 2013 08:46
Ignore temporary files in Eagle
.gitignore
# This line ignore files named .s#1 .s#2 ...
*.s\#[0-9]
@yageek
yageek / gist:4518092
Last active December 11, 2015 00:39
Edit JPEG Tag of a JPEG file using Core foundation
CGImageSourceRef originalImageSource = CGImageSourceCreateWithURL((CFURLRef)imageURL, NULL);
//get gps metadata
NSDictionary *metadata = (NSDictionary *)CGImageSourceCopyPropertiesAtIndex(originalImageSource,0,NULL);
//make the metadata dictionary mutable so we can add properties to it
NSMutableDictionary *metadataAsMutable = [[metadata mutableCopy]autorelease];
[metadata release];
//get mutable gps data
NSMutableDictionary *GPSDictionary = [[[metadataAsMutable objectForKey:(NSString *)kCGImagePropertyGPSDictionary]mutableCopy]autorelease];
if(!GPSDictionary)
{