Skip to content

Instantly share code, notes, and snippets.

# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
# install nano from homebrew
brew install nano
# update your nanorc file with the contents of the nanorc file below
nano ~/.nanorc
# re-open your terminal and you'll have syntax highlighting
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@ar-g
ar-g / my_bash_profile
Last active August 29, 2015 14:11
my_bash_profile
export PATH="/Applications/sdk/platform-tools":$PATH
export ANDROID_HOME=/Applications/sdk
export PATH=$PATH:$ANDROID_HOME/tools
export M2_HOME="/Applications/apache-maven-3.2.1/"
export PATH=${PATH}:${M2_HOME}/bin
export PATH=/usr/local/Cellar/subversion/1.8.8/bin/:$PATH
export PATH="/Applications/gradle-2.0/bin/":$PATH
export PATH=/usr/local/Cellar/nano/:$PATH
export PATH=/usr/local/Cellar/vim/:$PATH
/*
* TypefaceTextView.java
* Simple
*
* Copyright 2012 Simple Finance Corporation (https://www.simple.com)
*
* 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
*
/*
* Author: Felipe Herranz (felhr85@gmail.com)
* Contributors:Francesco Verheye (verheye.francesco@gmail.com)
* Israel Dominguez (dominguez.israel@gmail.com)
*/
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import android.os.Handler;
@ar-g
ar-g / android.md
Last active August 29, 2015 14:21 — forked from geekygecko/android.md

Android Cheat Sheet

Developer tips

Record a video of your app

Developer options -> Check show touches
adb shell screenrecord /sdcard/video.mp4
adb pull /sdcard/video.mp4
@ar-g
ar-g / .zshrc
Created November 3, 2015 01:07
# Path to your oh-my-zsh installation.
export ZSH=/Users/andrey/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME=pygmalion
# Use sublimetext for editing config files
@ar-g
ar-g / env.sh
Created November 3, 2015 01:08
export EDITOR='vim'
export JAVA8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
@ar-g
ar-g / android-screen-to-gif.sh
Last active May 18, 2016 09:11 — forked from lorenzos/android-screen-to-gif.sh
Captures screen from Android device via ADB and makes a 180x320 GIF
#!/bin/bash
# How to install:
# exo-open "http://developer.android.com/sdk/index.html#Other"
# for linux users
# sudo apt-get install libav-tools imagemagick
# for mac users
# brew install libav
# wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh
# chmod a+x android-screen-to-gif.sh
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>