Skip to content

Instantly share code, notes, and snippets.

View matthewd673's full-sized avatar

Matthew Daly matthewd673

View GitHub Profile
@matthewd673
matthewd673 / rhyme.js
Last active November 20, 2021 03:35
Check if two words rhyme
//download dictionary from https://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict.0.7a
//dictionary format: ['RHYME', 'R AY1 M']
const rhymeDict = [];
//despite the size of the file, this parses reasonably quickly
function populateRhymeDict() {
fetch('cmudict.0.7a.txt')
.then(response => response.text())
.then(data => {
@matthewd673
matthewd673 / README.md
Last active February 24, 2023 05:39
Explore how Wikipedia articles connect to each other

wikiweb.rb

A very poor use of time.

Build & run

  • Download wikiweb.rb
  • Ruby 3.2.1 required (or something reasonably recent)
  • Requires nokogiri (gem install nokogiri)

Usage