Skip to content

Instantly share code, notes, and snippets.

View odemolliens's full-sized avatar

@odemolliens odemolliens

View GitHub Profile
@odemolliens
odemolliens / FontFactory.java
Last active February 22, 2016 08:40
FontFactory - improve performance when using custom fonts
import java.util.HashMap;
import android.content.Context;
import android.graphics.Typeface;
import android.util.Log;
/**
* Manage font
* @author Olivier Demolliens. @odemolliens
*/
@odemolliens
odemolliens / NSUrlConnection+Blocks
Last active August 29, 2015 14:02
NSURLConnection with blocks for Swift language
//
//Copyright 2014 Olivier Demolliens - @odemolliens
//
//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 distributed under
@odemolliens
odemolliens / ODAnnotation.h
Last active August 29, 2015 14:01
MKAnnotation Override
//
// ODMapAnnotation.h
// iVelo
//
// Created by Olivier Demolliens on 24/06/13.
// Copyright (c) 2013 Olivier Demolliens. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>