Skip to content

Instantly share code, notes, and snippets.

View dougvalenta's full-sized avatar

Doug Valenta dougvalenta

  • Portland, Oregon
View GitHub Profile
@dougvalenta
dougvalenta / injection.html
Last active May 6, 2020 16:23
Delete SquareSpace analytics
<!--
If SquareSpace has started dropping analytics cookies and "zombie cookies" via local storage on your visitors,
even though you have analytics cookies disabled, this script should help you do at least something to protect
your visitors' privacy.
It will also take care of the pesky "crumb" cookie they aren't able to disable, even though it isn't necessary
if you don't use SquareSpace features that are vulnerable to XSRF.
-->
<script type="text/javascript">
setInterval(() => {
/*
* Copyright 2018 Doug Valenta.
* Licensed under the terms of the MIT License.
*/
package net.dougvalenta.classtree;
import java.util.Comparator;
/**
*
@dougvalenta
dougvalenta / English village grammar
Last active March 19, 2018 00:07
Grammar for English village names based on Domesday (https://opendomesday.org/place/) WIP
strong-vowel=(a|e|i|o|u)([weak-pivot]|[strong-pivot])
weak-vowel=(a[a-diphthong]|e[e-diphthong]|o[o-diphthong]|u[u-diphthong]|y[strong-pivot]|i[i-diphthong])
gh-pivot=(gh(t)[strong-declension]|[strong-pivot])
w-vowel=((a|e|i|o|u|y)([w-pivot]|[strong-pivot])|[weak-vowel]|(a|e|i|o|u)([n-pivot]|[m-pivot]|[s-pivot]|[r-pivot]|[l-pivot]))
y-vowel=((a|e|i|o|u)([y-pivot]|[strong-pivot])|[weak-vowel]|(a|e|i|o|u)([n-pivot]|[m-pivot]|[s-pivot]|[r-pivot]|[l-pivot]))
q-vowel=u(a([strong-pivot]|[modified-pivot]|[w-pivot])|e((e)[strong-pivot]|[modified-pivot]|[w-pivot])|i([strong-pivot]|[modified-pivot]|[w-pivot])|o([strong-pivot]|[modified-pivot]|[w-pivot]))
w-pivot=(bb|ch|ck|dd|dg|ff|gg|pp|ss|sh|mm|rr|ll|tt|tch|y|x|ves)[weak-declension]
y-pivot=(bb|ch|ck|dd|dg|ff|gg|pp|ss|sh|mm|rr|ll|tt|tch|w|x|ves)[weak-declension]
strong-pivot=(b(s)|ck(s)|ch|d(s)|f|g(s)|k(s)|p(s)|r(s)|l(s)|n(s)|s|m(s)|t(s)|th)([strong-declension])
weak-pivot=(bb|ch|ck|dd|dg|ff|gg|pp|ss|sh|mm|rr|ll|tt|tch|w|y|x|ves)[weak-declension]
@dougvalenta
dougvalenta / Hypertext.cs
Last active February 20, 2018 10:05
Hypertext for Unity UI
/*
* Copyright 2018 Doug Valenta
* Licensed under the MIT license
*/
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Text.RegularExpressions;