{{ message }}

Instantly share code, notes, and snippets.

# Christian Lawson-Perfect christianp

Created Jan 5, 2022
Constructing a square with area 5
View five-times-square.eukleides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 let( middle, point(3/2,3/2), t, point(0,1)..point(2,1)..point(2,0), t2, point(0,1)..point(2,0)..point(0,0), colors, qualitative_color_schemes(5)[0], eukleides("A 3×3 grid of squares. The middle square is filled in, and the 2×1 rectangles around it each have half filled in. The filled-in shapes together make a square whose corners touch the edges of the grid.", [ map(x filled color, [x,color], zip(iterate(rotate(tri,middle,deg(90)),tri,t,3), colors)) , map(x filled color opacity(0.3), [x,color], zip(iterate(rotate(tri,middle,deg(90)),tri,t2,3), colors))
Created Aug 25, 2020
Mastodon LaTeX preview

This patch applies on top of the mathstodon branch maintained by christianp. It's only useful if you have something rendering LaTeX inside status content. The mathstodon branch uses MathJax for this.

You need a copy of MathJax 3 in the folder public/MathJax.

Created Jun 18, 2020
A330070
View A330070.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Sep 14, 2019
Placement puzzle picture
View placement.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Aug 1, 2019
View prime-image.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Jul 30, 2019
Math-Off vote plots
View bigmathoff-vote-plots.ipynb
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Created Mar 27, 2019
MathJax for mastodon

These patches are based off Mastodon v2.7.1. They will probably need some work to apply to future releases.

mathjax.diff adds MathJax to render LaTeX. You need a copy of MathJax under the URL /MathJax. Write inline maths between $$ and $$, and display-mode maths between $ and $.

autolatex.diff adds automatic replacement of some LaTeX with unicode equivalents in the toot compose box. It only applies to text not within LaTeX delimiters, so doesn't interfere with MathJax.

Created Nov 27, 2018
Names of scientists nominated to appear on the new £50 note
View bank-note-names.ipynb