Skip to content

Instantly share code, notes, and snippets.

@akperkins
akperkins / build.gradle
Last active Jul 23, 2019
Example of auto-generating the versionCode
View build.gradle
apply plugin: 'com.android.application'
// version information
def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
@akperkins
akperkins / MainKtTest.kt
Last active Jun 12, 2017
Example Kotlin script which demonstrates usage gfxinfo to create an automated jank performance test
View MainKtTest.kt
package com.example
import org.junit.Test
import com.example.MainKtTest.*
import org.junit.Assert
/**
* Created by Andre Perkins (akperkins1@gmail.com) on 6/6/17.
*/
class MainKtTest {
@akperkins
akperkins / remoteSnapshot
Last active Aug 3, 2016
a bash script that will push a snapshot of your current repo to a remote repository
View remoteSnapshot
#!/bin/bash
#This script performs pushes to a remote repo but does not contain the history of the branch
#that it was pushed from. This is useful in the case of consulting work when you want to share
#the current state of a repository but want to obscure the history of the work.
#
#Author:Andre Perkins <akperkins1@gmail.com>
#Description:This script pushs the current ref that the chosen local without history (without a reference to it's parent) to the abinbev repo.
#Options:
#b-local branch that should be used to push from. If not supplied, the default branch of "dev" is used