Skip to content

Instantly share code, notes, and snippets.

View adriangl's full-sized avatar
💻
Back to work!

Adrián García adriangl

💻
Back to work!
View GitHub Profile
@adriangl
adriangl / Firebase-CLI-Profile-Utils
Created April 29, 2020 07:30
Firebase CLI utils to ease switching user accounts
Firebase-CLI-Profile-Utils
@adriangl
adriangl / LICENSE
Created April 29, 2020 07:25
License for all public gists published by me
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
@adriangl
adriangl / pre-commit
Created November 23, 2016 13:28
Git pre-commit script for running Checkstyle in all Android-Studio based project files
#!/bin/sh
#Define paths where the checkstyle file is and where to check for style inconsistencies
CHECKSTYLE_PATH="checkstyle.xml"
CHECKSTYLE_FOLDERS_TO_CHECK="app/src/main/java app/src/androidTest/java app/src/test/java"
#Check if the 'checkstyle' command is installed
#Magic: http://stackoverflow.com/a/677212
command -v checkstyle >/dev/null 2>&1 || { echo >&2 "checkstyle is not installed, aborting.\nInstall it using brew or apt-get"; exit 1; }
#Run checkstyle over our files