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
''' | |
UK by-election analysis by Mia yun Ruse. Public domain. | |
As seen on: | |
https://commons.wikimedia.org/wiki/File:UK_By-elections.png | |
https://en.wikipedia.org/wiki/List_of_United_Kingdom_by-elections_(2010–present) | |
Data is sourced from: | |
https://www.parliament.uk/about/how/elections-and-voting/by-elections/ |
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
''' | |
A quick DnD-style dice roller by Mia yun Ruse. | |
(Public domain, because it's hardly inventing the wheel.) | |
Allows for expressions such as: | |
> 5d0 | |
> 5:d2*10+3; 2d20 | |
23, 13, 13, 13, 13, 24 |
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
import os | |
from pathlib import Path | |
import struct | |
import sqlite3 | |
HEIGHT = 2400 | |
X_PER_GPA = 5 | |
X_START = { | |
'CH5_naumova_P_1': 450, | |
'CH6_P212121': 450, |
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
'''Minkowski 2D space-time animation showing Lorentz boost. | |
Requires Python 3.7, numpy and matplotlib, and an ffmpeg binary in your PATH.''' | |
import math | |
import numpy as np | |
import matplotlib | |
import matplotlib.animation as anim | |
from matplotlib import pyplot as plot |
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
// AutoLoot main file | |
function AL_CanLegallyTake( container : W3Container ) : bool | |
{ | |
if( container.disableStealing || container.HasQuestItem() || | |
(W3Herb)container || (W3ActorRemains)container ) | |
return true; | |
else | |
return false; | |
} |
NewerOlder