Skip to content

Instantly share code, notes, and snippets.

@akperkins
akperkins / remoteSnapshot
Last active August 3, 2016 23:19
a bash script that will push a snapshot of your current repo to a remote repository
#!/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
@akperkins
akperkins / MainKtTest.kt
Last active June 12, 2017 12:53
Example Kotlin script which demonstrates usage gfxinfo to create an automated jank performance test
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 / build.gradle
Last active July 23, 2019 03:44
Example of auto-generating the versionCode
apply plugin: 'com.android.application'
// version information
def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"