Skip to content

Instantly share code, notes, and snippets.

View eefret's full-sized avatar

Christopher Herrera eefret

View GitHub Profile
@eefret
eefret / Normalize android assets
Last active March 7, 2016 21:41
Sometimes in Android development you find designers that make your assets names with "-" this makes the android compiler to fail as assets cannot have "-", I create this script to solve this problem recursively renaming the files and replacing "-" with "_" plus making them lowercase.
#!/bin/bash
# Normalize assets
# Sometimes in Android development you find designers that make your assets names with "-" this makes
# the android compiler to fail as assets cannot have "-", I create this script to solve this problem
# recursively renaming the files and replacing "-" with "_" plus making them lowercase.
#
# Instructions:
# 1- Move this script to your Android {PROJECT_BASE_FOLDER}/app/src/main/res
# 2- run it with sudo ex: "sudo ./rename_script.sh"
@eefret
eefret / Logger
Created September 29, 2014 22:30
Logger class
import android.util.Log;
/**
* @author eefret
* Created by Christopher T. Herrera (eefret) on 4/22/2014 [12:41 AM]
* Wrapper class for android Logging utility will select a tag automatically from class, method and line number executed.
*/
public class Logger {
//TODO Create a detail Enum to define the log detail level.
//TODO Create a method that halt every log possible based on the development mode Ex: (PRODUCTION, DEVELOPMENT, DEBUG) that can manage what can be and can't be logged