Skip to content

Instantly share code, notes, and snippets.

View aarongustafson's full-sized avatar
👋
he/him/his

Aaron Gustafson aarongustafson

👋
he/him/his
View GitHub Profile
@aarongustafson
aarongustafson / basic-manifest.json
Last active January 29, 2020 00:09
Working with multi-lingual manifest files
{
"lang": "en-US",
"name": "Aaron Gustafson",
"short_name": "AaronG",
"scope": "/",
"display": "minimal-ui",
"start_url": "/",
"theme_color": "#27831B",
"description": "The online home and work of Aaron Gustafson.",
"orientation": "any",
@aarongustafson
aarongustafson / ala-audio-width-download-fallback.html
Created August 29, 2018 17:12
Audio with fallback for A List Apart
<figure id="">
<audio controls>
<source src="http://alistapart.com/d/misc-images/comment-edit.mp3" type="audio/mp3">
<source src="http://alistapart.com/d/misc-images/comment-edit.ogg" type="audio/ogg">
<!-- fall back to a simple image -->
<p>Your browser doesn't support HTML5 audio, but you can <a href="http://alistapart.com/d/misc-images/comment-edit.mp3">download the MP3</a> instead.</p>
<label for="username-1">Disabled Username</label>
<input id="username-1" name="username-1" disabled value="AaronGustafson">
<label for="username-2">Readonly Username</label>
<input id="username-2" name="username-2" readonly value="AaronGustafson">
@aarongustafson
aarongustafson / print.css
Created October 18, 2017 19:46
Print Style Switching
body { background: white; color: black; }
@aarongustafson
aarongustafson / category-manifest.json
Last active August 30, 2017 18:02
sample manifest with categories
{
"name": "Gojiro",
"description": "Gojiro, a freak mutation with a cynical worldview, suffers the pain of solitude as well as several maladies experienced by entertainers, including drug abuse and suicidal tendencies.",
"icons": [{
"src": "images/icon.png",
"sizes": "192x192"
}],
"categories": ["books", "fiction", "science fiction & fantasy", "kaiju", "怪獣"]
}
<input type="email" name="email" id="email"
required aria-required="true">
@aarongustafson
aarongustafson / video-avi-fallback.html
Created March 30, 2017 20:11
Pondering fallback content
<video>
<source src="my.avi" type="video/avi">
<p>Your browser doesn’t support AVI, but you can
<a href="my.avi" download>download this movie</a></p>
</video>
@aarongustafson
aarongustafson / osx-special-chars.ahk
Last active June 21, 2021 15:45
AutoHotKey stuff
#UseHook
!VKC0SC029::Return ; grave -> the grave ` accent gave some probs, used the virtualkey + scancode instead
!e::Return ; acute
!i::Return ; circumflex
!t::Return ; tilde
!u::Return ; umlaut
; 1 2 3 4 5 6 7 8 9 1
; 0
; r g G a A c C t T u U
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "The name of the web app that you wish to create."
}
},
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "The name of the web app that you wish to create."
}
},