Skip to content

Instantly share code, notes, and snippets.

View ow's full-sized avatar
🎊
building fun things

Owen Williams ow

🎊
building fun things
View GitHub Profile
@ow
ow / Constellations.markdown
Created October 18, 2015 18:23
Constellations
const MY_SPECIAL_NUMBER = 100;
MY_SPECIAL_NUMBER = 101; //This will cause an error
@ow
ow / es6.js
Created March 7, 2016 13:38 — forked from csarrazi/es6.js
ES6 classes
class Animal {
constructor(race) {
this.race = race;
}
}
class Cat extends Animal {
constructor(race) {
super(race);
}
<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>
</button>
{# 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 #}
#!/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"
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)',
Hi,
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: https://luminarypodcasts.com/listen/charged-tech-017/charged-tech-podcast/daffb3a3-92ae-424f-a3fa-86cbe8c50cc6
Copyright owner: Charged BV
RSS URL: https://feeds.simplecast.com/tbwR5Zjg
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.
@ow
ow / Chromium flags for PWAs.md
Last active January 27, 2021 23:42
Chromium flags for PWAs

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:
chrome://flags/#enable-desktop-pwas

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: