An android animated vector drawable created using ShapeShifter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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: