Skip to content

Instantly share code, notes, and snippets.

View strawstack's full-sized avatar

Richard strawstack

View GitHub Profile
@strawstack
strawstack / README.md
Created July 2, 2025 23:09
Example of a gist

Hello World

// ==UserScript==
// @name DuoLingo Pinyin
// @version 1
// @grant none
// ==/UserScript==
// Script designed to run with GreaseMonkey:
// https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
// Script is designed for the English to Chinese DuoLingo course
const character_data = {
"1": {
"emoji": "1️⃣",
"english": "one",
"chinese": "一",
"japanese": "一"
},
"two": {
"emoji": "2️⃣",
"english": "two",
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.2.0/crypto-js.min.js" integrity="sha512-a+SUDuwNzXDvz4XrIcXHuCf089/iJAoN4lmrXJg18XnduKK6YlDHNRalv4yd1N40OKI80tFidF+rqTFKGPoWFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<script>
function rollDice() {
return (Math.floor(Math.random() * 6) + 1).toString();
}
0 null
1 null
2 null
3 null
4 null
5 null
6 Stationary_Anchor
7
8 Simple_Collection_Net
9
@strawstack
strawstack / AOC_2021_D22_P2.wl
Created December 25, 2021 03:27
2100 lines of generated Wolfram Language code to solve Advent of Code day 22!
Volume[RegionDifference[RegionUnion[Region[
Cuboid[
{-40,-3,-48},
{8,50,7}
]
],Region[
Cuboid[
{-38,-11,-30},
{11,38,20}
]
@strawstack
strawstack / movies.txt
Created September 14, 2021 00:27
Some great movies in no particular order. Also includes tv shows.
Rushmore
Arrival
Into the Spider-Verse
The Grand Budapest Hotel
Shaw Shank Redemption
Once Upon a Time in Holywood
Napoleon Dynamite
The Mandalorian
Rogue One
Mid 90s
@strawstack
strawstack / games.txt
Last active September 14, 2021 00:19
Some great games in no particular order.
7 Billion Humans
Astroneer
The Beginner's Guide
Braid
Celeste
Exapunks
Fire Watch
Getting Over It with Bennett Foddy
Grow Home
Hotline Miami