Skip to content

Instantly share code, notes, and snippets.

This is a poem from a paper Historia Inventionis Phosphori by Leibniz, written in 1710, correcting the account of the discovery of phosphorus. Translating this paper has been a perennial project of mine, it's not long but I haven't quite had the skill to approach some sections. This poem is Leibniz writing about phosphorus and its discoverer. I'll post the poem, and my working translation (warts and all), which I'm looking for help with.

Here is the full poem which is typeset and corrected: Google Books Leibniz Gesammelte Werke lines 175-212. This version has several differences and clarifies some intended meanings.

First, about phosphorus: The phosphorus being discussed is a form of white phosphorus, which can glow brilliantly and will react by bursting into flames if it is not kept under water. You can see demonstrations of it in [this video from Th

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 3 12:41:04 2025
@author: sam
"""
import sys
import os
import sys
import os
import time
os.environ["QT_API"] = "pyside6"
from qtpy import QtWidgets,QtCore
from pyvistaqt import QtInteractor, MainWindow
from pathlib import Path
class MyMainWindow(MainWindow):
def __init__(self, parent=None, show=True):
@sjgallagher2
sjgallagher2 / latinocr.py
Created July 17, 2025 15:40
Latin OCR cleaning with PyWORDS
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 17
@author: Sam.Gallagher
"""
import pywords.lookup as lookup
import pywords.utils as pwutils
from itertools import product
// Printing and file handling
#include <stdio.h>
#include <string.h>
// Function doc template:
/**
* @brief Summary.
*
* Long description.
*
@sjgallagher2
sjgallagher2 / get_txt_words.py
Created February 7, 2021 19:56
Vocab list builder for Python 3 with PYWORDS
# Detailed instructions on how to use this:
# 1. Make sure you have Python 3 installed on your computer. It's available here: https://www.python.org/downloads/
# Python is a scripting language, meaning you can run it interactively (typing into a terminal) or you can write scripts
# (like this one) and run them with a Python IDE like PyCharm, or from Python IDLE, or any other way you want.
# Python 2 (e.g. 2.7) is NOT supported by PyWORDS, only Python 3.
# 2. Download the PYWORDS repository here: https://www.python.org/downloads/
# You can download it as a .zip file. Save the zip in a folder somewhere like
# C:/Users/<user>/Documents/MyDictionaries/PYWORDS.zip
# Where "MyDictionaries" is whatever name you choose for the files will be saved.
# It doesn't matter where you save it, but for THIS script to work, you need to save this script in the same directory
@sjgallagher2
sjgallagher2 / basic-embedded-c.c
Last active June 30, 2025 21:12
A get-started-fast guide to embedded C
/*
* In embedded systems, the C programming language is most often the language of choice. For more intensive
* elements in the system, assembly can be used. Embedded C is distinct from typical C programming in its
* requirements for efficiency, its limited resources, and its unique hardware problems which are much less common in
* the majority of C programs. Even still, the language itself is the same, so check out K&R's The C Programming
* Language and other reference books.
*
* Some of the problems central to embedded systems programming:
* - Memory management
* - Register access and manipulation
@sjgallagher2
sjgallagher2 / install-log.txt
Created June 17, 2017 15:30
Log of "make" command for nupic.core
This file has been truncated, but you can view the full file.
@note
Run with "sudo"
@logstart
[ 4%] Built target YamlStaticLib
[ 7%] Built target YamlCppStaticLib
[ 8%] Built target yaml-cpp-bundle
[ 11%] Built target Apr1StaticLib
[ 14%] Built target ZStaticLib
[ 16%] Built target z-bundle