Skip to content

Instantly share code, notes, and snippets.

View Aracem's full-sized avatar
👨‍🚀
Jobandtalent and Storybeat

Marcos Trujillo Aracem

👨‍🚀
Jobandtalent and Storybeat
View GitHub Profile
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
@Aracem
Aracem / OttoBus
Created January 28, 2015 22:11
OttoBus that always send Bus event in the main thread
/**
* Upclose Otto library {@link com.squareup.otto.Bus}
*
*
* Created by Marcos Trujillo (U・x・U) on 28/07/14.
*/
public class OttoBus extends Bus {
private final Handler mainThread = new Handler(Looper.getMainLooper());
@Aracem
Aracem / timbd
Created January 15, 2015 11:01
Android Studio Live Template to put timber logs (for D)
/**
* Template to put the annoying timber.d ...
*
* Declaration: Java - Expression
* Variables:
* $TYPE$ expresion empty, default value ""
*
* Follow this instruction to add it to Android Studio
* http://dmytrodanylyk.com/pages/blog/templates.html
*/
@Aracem
Aracem / nonempty_template
Created January 15, 2015 10:56
Android Studio Live Template to put check if a textview is not empty
/**
* Template to put the annoying !TextUtils.isEmpty(String)
*
* Declaration: Java - Expression
* Variables:
* $STRING$ expresion: completeSmart()
*
* Follow this instruction to add it to Android Studio
* http://dmytrodanylyk.com/pages/blog/templates.html
*/
@Aracem
Aracem / styles.xml
Last active July 11, 2017 15:48
Material Text Styles supported for all version with Appcompat + Calligraphy Library ( https://github.com/chrisjenx/Calligraphy ) Material Design recomendations http://www.google.com/design/spec/style/typography.html#typography-roboto-noto Remember to add the fonts to your source/fonts folder
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- TextView Empty Base-->
<style name="TextViewBase" parent="android:TextAppearance.Holo.Widget.TextView"/>
<!-- ActionBar Title -->
<style name="CustomActionBarTitleBase" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"/>
<!-- Text Views Default Base -->
public abstract class HeaderFooterRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
private static final int VIEW_TYPE_MAX_COUNT = 1000;
private static final int HEADER_VIEW_TYPE_OFFSET = 0;
private static final int FOOTER_VIEW_TYPE_OFFSET = HEADER_VIEW_TYPE_OFFSET + VIEW_TYPE_MAX_COUNT;
private static final int CONTENT_VIEW_TYPE_OFFSET = FOOTER_VIEW_TYPE_OFFSET + VIEW_TYPE_MAX_COUNT;
private int headerItemCount;
private int contentItemCount;
private int footerItemCount;
@Aracem
Aracem / colors.xml
Last active August 29, 2015 14:10
RoundedActionButton
<?xml version="1.0" encoding="utf-8"?>
<!--
~ /*
~ * Copyright (c) 2014 Rushmore.fm All rights reserved.
~ * 1 1
~ * 101 101
~ * 100010001
~ * 10000000001
~ * 1000000000001
~ *
@Aracem
Aracem / build.gradle
Last active August 29, 2015 14:08 — forked from Takhion/build.gradle
Gradle Script to strip play services
apply from: 'strip_play_services.gradle'
@Aracem
Aracem / build.gradle
Created October 13, 2014 09:33
Gradle Example
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'hugo'
apply plugin: 'crashlytics'
def versionMajor = 1
def versionMinor = 7
def versionPatch = 0
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
package org.adw.drawables;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.FloatMath;