Skip to content

Instantly share code, notes, and snippets.

View aymericio's full-sized avatar

Aymeric Gallissot aymericio

View GitHub Profile

Keybase proof

I hereby claim:

  • I am plougy on github.
  • I am aymeric (https://keybase.io/aymeric) on keybase.
  • I have a public key ASAZZ0NRBPj9d9prhgFJIoDHrYmY7mwK9fLBNMEb8ezm1go

To claim this, I am signing this object:

@aymericio
aymericio / gist:9758499
Created March 25, 2014 10:05
Get font names list on iOS
NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];
NSArray *fontNames;
NSInteger indFamily, indFont;
for (indFamily=0; indFamily<[familyNames count]; ++indFamily)
{
//NSLog(@"Family name: %@", [familyNames objectAtIndex:indFamily]);
fontNames = [[NSArray alloc] initWithArray:[UIFont fontNamesForFamilyName:[familyNames objectAtIndex:indFamily]]];
for (indFont=0; indFont<[fontNames count]; ++indFont)
{
NSLog(@"%@", [fontNames objectAtIndex:indFont]);
@aymericio
aymericio / .gitignore
Created November 13, 2013 13:54 — forked from Abizern/.gitignore
# Mac OS X
*.DS_Store
# Xcode
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
*.xcuserstate
*.xccheckout
@aymericio
aymericio / gist:5364487
Last active December 16, 2015 02:39
Auto-Increment Your iOS Build Number
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
@aymericio
aymericio / gist:4461726
Last active December 10, 2015 16:29
Prefix.pch
//
// Prefix header for all source files
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif