Skip to content

Instantly share code, notes, and snippets.

View lukaciko's full-sized avatar

Luka Cindro lukaciko

  • Spotify
  • Stockholm
View GitHub Profile
@lukaciko
lukaciko / TypefaceCache.java
Last active August 29, 2015 14:17
A class that loads and caches Android typefaces.
/**
* A thread-safe class that loads and caches typefaces.
*/
public final class TypefaceCache
{
private static final int INITIAL_CAPACITY = 2;
private static final ConcurrentHashMap<String, Typeface> pathToTypeface
= new ConcurrentHashMap<>(INITIAL_CAPACITY);
@lukaciko
lukaciko / spells.txt
Created October 24, 2014 20:43
Harry Potter spells
# To set spells as an obfuscation dictionary for ProGuard
# add the following lines to the ProGuard configuration:
#
# -obfuscationdictionary spells.txt
# -classobfuscationdictionary spells.txt
# -packageobfuscationdictionary spells.txt
Alohomora
Orchideous
Tergeo