Skip to content

Instantly share code, notes, and snippets.

View KioKrofovitch's full-sized avatar

Kelly Shuster KioKrofovitch

View GitHub Profile
#
# Circle CI & gradle.properties live in harmony
#
# Android convention is to store your API keys in a local, non-versioned
# gradle.properties file. Circle CI doesn't allow users to upload pre-populated
# gradle.properties files to store this secret information, but instaed allows
# users to store such information as environment variables.
#
# This script creates a local gradle.properties file on current the Circle CI
# instance. It then reads environment variable TEST_API_KEY_ENV_VAR which a user
@KioKrofovitch
KioKrofovitch / hexColorShader
Last active August 29, 2015 14:09
hexColorShader
/**
* hexColorShader
*
* Pass in a hex int ARGB, and your hex value will be lightened or
* darkened.
*
* NOTE: We assume you pass in ARGB because this is what Android converts
* it to. This method would be better if it checked the length of the
* hex string first, to see if it is ARGB or RGB.
*