Skip to content

Instantly share code, notes, and snippets.

View adstro's full-sized avatar

Adam Stroud adstro

View GitHub Profile
@adstro
adstro / .gitignore-android
Last active March 23, 2020 02:11
The .gitignore I use for Android development
# Built application files
*.apk
*.aar
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files

Keybase proof

I hereby claim:

  • I am adstro on github.
  • I am adstro (https://keybase.io/adstro) on keybase.
  • I have a public key ASDCNHgfwGpzdEIh6x1pFzrbQOK7leh2HjgOm-Dfd4cf1wo

To claim this, I am signing this object:

@adstro
adstro / .gitlab-ci.yml
Created November 5, 2017 04:20
GitLab CI Config
image: openjdk:8-jdk
variables:
ANDROID_HOME: "${CI_PROJECT_DIR}/.ANDROID_HOME"
GRADLE_USER_HOME: "${CI_PROJECT_DIR}/.GRADLE_USER_HOME"
cache:
untracked: true
paths:
- "${ANDROID_HOME}/"
version: 2
jobs:
build:
docker:
- image: openjdk:8
environment:
JVM_OPTS: -Xmx3200m
steps:
# It would be nicer to set this in the global environment section. However, this can't be
# done until there is better environment variable support.
@adstro
adstro / gist:2934233
Created June 15, 2012 01:59 — forked from mosabua/gist:1316903
ExpandableListFragment
package android.support.v4.app;
import android.os.Bundle;
import android.os.Handler;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnCreateContextMenuListener;
@adstro
adstro / tmux-cheatsheet.markdown
Last active September 2, 2015 14:00 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@adstro
adstro / README.md
Last active August 29, 2015 14:26 — forked from gabrielemariotti/README.md
How to manage the support libraries in a multi-module projects. Thanks to Fernando Cejas (http://fernandocejas.com/)

Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.

A very good way is to separate gradle build files, defining something like:

root
  --gradleScript
 ----dependencies.gradle
Verifying I am +adstro on my passcard. https://onename.com/adstro
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Circle Internet Financial
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
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)