Skip to content

Instantly share code, notes, and snippets.

@ahstro
ahstro / openpgp.txt
Created October 4, 2017 15:01
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d99b97cd6c7dd47b01267cfc50a3573efbfa9867]
@ahstro
ahstro / openpgp.txt
Created October 4, 2017 15:01
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d99b97cd6c7dd47b01267cfc50a3573efbfa9867]
import Regex
alphanumericRegex =
Regex.regex "^[A-Za-z0-9]*$"
allAlphanumeric : String -> Bool
allAlphanumeric =
Regex.contains alphanumericRegex
/* *
* Separate variable declarations when variables are independent
*
* Allows easy reordering by moving whole lines without thinking about commas
* */
const foo = 1
const bar = 2
/* *
* Comma-first declarations when subsequent variables depend on the former
@ahstro
ahstro / dabblet.css
Last active August 29, 2015 14:23 — forked from LeaVerou/dabblet.css
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.spinner {
position: relative;