Skip to content

Instantly share code, notes, and snippets.

View stealthcopter's full-sized avatar

Matthew Rollings stealthcopter

View GitHub Profile
@stealthcopter
stealthcopter / !Cross to Back Arrow and reverse Android Animated Vector Drawable.md
Last active February 18, 2022 16:21
Cross to Back Arrow Animated Vector Drawable

Cross to Back Arrow and reverse

An android animated vector drawable created using ShapeShifter

package com.example
import android.util.Log;
import android.view.KeyEvent;
/**
* Created by mat on 10/04/14.
*
* Allows a secret combination of volume up / volume down presses to trigger something.
* I.E. reveal a hided debug menu when a combination is entered
# Function to calculate the WPS checksum of a 7 digit number
def wps_checksum(pin):
accum = 0
while pin>0:
accum += 3 * (pin % 10);
pin /= 10;
accum += pin % 10;
pin /= 10;
return (10 - accum % 10) % 10

Keybase proof

I hereby claim:

  • I am stealthcopter on github.
  • I am stealthcopter (https://keybase.io/stealthcopter) on keybase.
  • I have a public key whose fingerprint is 5256 EF63 A886 2809 0D84 9BDE F63F 5F56 64A9 3CF3

To claim this, I am signing this object: