This file contains hidden or 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
# This is simple Python code for displaying a numpy array as pixels and updating it | |
# with reasonable speed. | |
# | |
# The code is by Nathaniel Virgo and is in the public domain - you can do what you | |
# want with it. | |
# | |
# I don't tend to use jupyter for this kind of thing, so it displays in a window. | |
# | |
# It gets about 60 fps with a 500x300 array on my machine, and about 40 fps for |
This file contains hidden or 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
# This is code written by Nathaniel Virgo, for the sake of replying to a Twitter thread. | |
# | |
# The code is in the public domain and you can do what you want with it. | |
# | |
# It simulates N masses moving in 2D with Newtonian gravity, with symmetric initial | |
# conditions, and outputs an animated gif. | |
# | |
# This code makes no attempt to be accurate, because the whole point was to show | |
# the system breaking down as a result of numerical inaccuracies. In particular, it | |
# doesn't use a conservative ODE solver, so even before it breaks down a little bit of |
This file contains hidden or 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
This is a list of Bram's sphere type twisty puzzle geometries that (potentially) have two or more | |
corner types simultaneously. For details and notation, see the forum thread at | |
http://twistypuzzles.com/forum/viewtopic.php?f=1&t=31829 | |
The list is divided into several sections. You will need to play around with the cut depths to get | |
these to work. So far, most of the ones I've tried have worked for me after a bit of fiddling. Note | |
that some of these are trivial, e.g. just related to the symmetries of the cube, but others are | |
quite unexpected. | |
In this list, sides can have up to 20 stops, and pieces with symmetries up to 8 are considered. |
This file contains hidden or 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
This is an ASCII version of https://codegolf.stackexchange.com/a/157692/21034 , in case the unicode doesn't render for everyone | |
alphabet: 01abcdehABCDEF[] | |
source: [a] | |
target: [h] | |
rules: |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
ETYMOLOGY. | |
(Supplied by a Late Consumptive Usher to a Grammar School) | |
The pale Usher--threadbare in coat, heart, body, and brain; I see him now. He was ever dusting his old lexicons and grammars, with a queer handkerchief, mockingly embellished with all the gay flags of all the known nations of the world. He loved to dust his old grammars; it somehow mildly reminded him of his mortality. | |
"While you take in hand to school others, and to teach them by what name a whale-fish is to be called in our tongue leaving out, through ignorance, the letter H, which almost alone maketh the signification of the word, you deliver that which is not true." --HACKLUYT | |
"WHALE.... Sw. and Dan. HVAL. This animal is named from roundness or rolling; for in Dan. HVALT is arched or vaulted." --WEBSTER'S DICTIONARY |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
ETYMOLOGY. | |
(Supplied by a Late Consumptive Usher to a Grammar School) | |
The pale Usher--threadbare in coat, heart, body, and brain; I see him | |
now. He was ever dusting his old lexicons and grammars, with a queer | |
handkerchief, mockingly embellished with all the gay flags of all | |
the known nations of the world. He loved to dust his old grammars; it | |
somehow mildly reminded him of his mortality. |