Skip to content

Instantly share code, notes, and snippets.

View strawstack's full-sized avatar

Richard strawstack

View GitHub Profile
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
# N = RandomPrime[{2^1020, 2^1025}]
# G = PrimitiveRoot[N]
import random
N = 450399019389671650452249084921759078761980896382890703798228170622215717666353
G = 3
def msgToNumber(msg):
total = 0
for i in range(len(msg)):
@strawstack
strawstack / p2p.html
Last active November 28, 2019 22:31
P2P Connection Establishment code for a blog article: http://regularmemory.blog/
<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Include the P2P library -->
<script src="https://unpkg.com/peerjs@1.0.0/dist/peerjs.min.js"></script>
<style>
html, body {