Skip to content

Instantly share code, notes, and snippets.

@nhaarman
nhaarman / MainActivity.java
Created December 28, 2018 08:35
MainActivity
package com.nhaarman.android2sandbox;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class MainActivity extends Activity {
static int i = 0;
@nhaarman
nhaarman / ktlint
Last active December 18, 2020 07:25
A Gradle wrapper-like ktlint wrapper
#!/bin/bash
ktlint_version="0.40.0"
########################################################################
# A wrapper for ktlint which automatically downloads and runs ktlint.
# ktlint executables will be installed under `build/ktlint`.
#
# Usage
#
# Download and run ktlint, passing arguments: