Skip to content

Instantly share code, notes, and snippets.

View tvquizphd's full-sized avatar

TV Quiz PhD tvquizphd

View GitHub Profile
@tvquizphd
tvquizphd / LICENSE
Created July 25, 2022 13:55
ModX config file
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
@tvquizphd
tvquizphd / en_ascii_freq.json
Last active February 17, 2022 14:42
Printable ASCII Frequencies in English following https://link.springer.com/content/pdf/10.3758/BF03195586.pdf
[
[ " ", 15480000 ],
[ "e", 7741842 ],
[ "t", 5507692 ],
[ "a", 5263779 ],
[ "o", 4729266 ],
[ "n", 4535545 ],
[ "i", 4527332 ],
[ "s", 4186210 ],
[ "r", 4137949 ],
@tvquizphd
tvquizphd / bottom_of_early_modern.txt
Created December 30, 2021 00:54
ttBo word pair input
Bottom of Thread _._ 1698,1,1
Bottom of _NOUN_ _ADP_ 1681,2,2
Bottom of _DET_ Sore 1693,1,1
Bottom of the Sore 1693,1,1
Bottom of _DET_ Popish 1697,2,1
Bottom of these _NOUN_ 1697,1,1 1699,1,1
Bottom of _DET_ Ship 1664,1,1 1687,1,1 1693,1,1
Bottom of _DET_ Well 1696,2,1 1697,1,1
Bottom of _PRON_ heart 1686,1,1 1693,1,1
Bottom of a River 1692,1,1 1694,1,1
set fileencodings=utf-8
set ts=2 sw=2
set expandtab
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@tvquizphd
tvquizphd / print_poisson_tree.js
Created April 9, 2021 02:07
Print a "tree" diagram for nodes where each node has a poisson distributed number of children.
let evaluate_poisson_probability = (mean, x, x_fact) => {
return (mean ** x) / (Math.exp(mean) * x_fact);
}
let make_poisson_array = (mean) => {
if (mean < 1) {
console.error(`Poisson with mean ${mean} less than 1 is not supported.`);
}
const factorial = [
1, 1, 2, 6, 24, 120, 720, 5040,
as well as
as much as
to go to
as long as
more and more
as soon as
of thousands of
as far as
to get to
to try to
@tvquizphd
tvquizphd / 5letter_words_with_one_uppercase_letter.json
Last active January 9, 2021 18:41
retext-spell issue for 5-letter nouns with a single capital T
{
"BaGgy": ["Bacgy","Badgy","Baegy","Bafgy","Bahgy","Baigy","Bajgy","Bakgy","Balgy","Bamgy","Baogy","Bapgy","Baqgy","Bargy","Basgy","Batgy","Baugy","Bawgy","Baxgy","Baygy"],
"BadlY": ["Badls"],
"BasiC": ["Basik"],
"BaroN": ["Barou"],
"BatoN": ["Batou"],
"BerrY": ["Berrd"],
"BeguM": ["Begut"],
"BesoM": ["Besop","Besog"],
"BegiN": ["Begim","Begie"],