Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nealsanche's full-sized avatar

Neal Sanche nealsanche

View GitHub Profile
var expanded by remember { mutableStateOf(false) }
DisclosureGroup(
label = { Text("Label") },
onClick = { expanded = !expanded },
modifier = Modifier.padding(16.dp),
isExpanded = expanded
) {
Greeting("Android")
}
@nealsanche
nealsanche / .gitconfig
Created February 26, 2021 15:09
Cleanup Git Branches
[alias]
cu = !git remote prune origin && git branch -vv | grep 'origin.*: gone]' | awk '{print $1}' | xargs git branch -D
@nealsanche
nealsanche / bumpme
Last active February 15, 2019 04:59
Fri Feb 15 04:59:50 UTC 2019
@nealsanche
nealsanche / 10: animator-morph_ridge_2_to_tick.xml
Created November 6, 2015 23:19 — forked from nickbutcher/10: animator-morph_ridge_2_to_tick.xml
Demonstrating an animation for scanning a fingerprint and showing success or failure. This uses a number of AnimatedVectorDrawables (https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable.html) to 'morph' parts of the fingerprint into the tick or cross to report success or failure. It also uses a moving clip-pat…
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@nealsanche
nealsanche / keybase.md
Created March 5, 2014 21:15
Verification

Keybase proof

I hereby claim:

  • I am nealsanche on github.
  • I am nealsanche (https://keybase.io/nealsanche) on keybase.
  • I have a public key whose fingerprint is C18E 2133 AC56 7CBC FCD0 A884 D4C1 310F 2AFC ABB0

To claim this, I am signing this object:

@nealsanche
nealsanche / NeuTextView.java
Created November 20, 2013 05:34
A text view that loads a particular font at runtime.
package com.robotsandpencils.wclclottery.controls;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* A textview that will show using Helvetica Neu
* Created by neal on 11/18/2013.