Skip to content

Instantly share code, notes, and snippets.

Avatar

Anton Strömkvist ahstro

View GitHub Profile
@ahstro
ahstro / openpgp.txt
Created Oct 4, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Oct 4, 2017
OpenKeychain Linked Identity
View openpgp.txt
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]
View Alphanumeric.elm
import Regex
alphanumericRegex =
Regex.regex "^[A-Za-z0-9]*$"
allAlphanumeric : String -> Bool
allAlphanumeric =
Regex.contains alphanumericRegex
View comma-style.js
/* *
* 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
View dabblet.css
/**
* (C)Leanest CSS spinner ever
*/
@keyframes spin {
to { transform: rotate(1turn); }
}
.spinner {
position: relative;