Skip to content

Instantly share code, notes, and snippets.

building fun things

Owen Williams ow

building fun things
View GitHub Profile
View gist:deda3ef131b5bad90631
### Keybase proof
I hereby claim:
* I am hyperperforator on github.
* I am ow ( on keybase.
* I have a public key whose fingerprint is E5BB 1A77 9D4A C34B 4753 D75B 6407 8742 1517 C690
To claim this, I am signing this object:
View JS constants
const MY_SPECIAL_NUMBER = 100;
MY_SPECIAL_NUMBER = 101; //This will cause an error
ow / es6.js
Created Mar 7, 2016 — forked from csarrazi/es6.js
ES6 classes
View es6.js
class Animal {
constructor(race) {
this.race = race;
class Cat extends Animal {
constructor(race) {
#!/usr/bin/env python
# install imagesize: pip install imagesize
import yaml, imagesize
from os import listdir, rename
from os.path import isfile, join, splitext, basename
# configuration
output_file = "prague.yml"
View Hyper
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Inconsolata, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
View Craft Language Switcher
<li class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ craft.i18n.getLocaleById(craft.locale).name }} <span class="caret"></span>
{# Configure and loop through selected site locales #}
{% set locales = ['en', 'da'] %}
{% for locale in locales %}
{% if loop.first %}<ul class="dropdown-menu lggnav">{% endif %}
{% set current = false %}
{# Check if locale equals the requested page locale #}
View Takedown_Luminary_Template
I'm reaching out because it's come to my attention that Luminary is hosting an unauthorized copy of our copyrighted material, Charged Tech Podcast, without notification or consent.
The infringing feed is here:
Copyright owner: Charged BV
Not only do I own and control this podcast, I do not currently authorize you to use it, and think you're acting in pretty bad faith with the podcasting industry by just outright assuming my consent for your paid service.
View Constellations.markdown
ow / Chromium flags for
Last active Jan 27, 2021
Chromium flags for PWAs
View Chromium flags for

Upcoming flags to enable link capturing and other PWA features. Enable these flags by copying and pasting the following, then searching for the below chrome://flags/

Enable full desktop integration:

Capture URLs in their scope, such as twitter URLs for the Twitter PWA:
chrome://flags/#enable-desktop-pwas-link-capturing chrome://flags/#enable-desktop-pwas-stay-in-window

Get a pop-up that offers to allow the PWA to open certain URLs: