An interactive visualization of Luigi Boccherini's complete string quartet output (1761-1804), displayed as a periodic table-inspired grid.
View it (via gisthack, see below for details):
| <!DOCTYPE html> | |
| <html> | |
| <head><title>Test Report (Dark)</title></head> | |
| <body> | |
| <div style="background: #fff3cd; border: 1px solid #ffc107; padding: 10px; margin-bottom: 20px; border-radius: 4px;"> | |
| <strong>Shared Report</strong> - This is a self-contained visual diff report. | |
| Images are embedded as base64. | |
| </div> | |
| <h1>Visual Diff Report - Test (Dark Mode)</h1> |
| <!DOCTYPE html> | |
| <html> | |
| <head><title>Test Report</title></head> | |
| <body> | |
| <div style="background: #fff3cd; border: 1px solid #ffc107; padding: 10px; margin-bottom: 20px; border-radius: 4px;"> | |
| <strong>Shared Report</strong> - This is a self-contained visual diff report. | |
| Images are embedded as base64. | |
| </div> | |
| <h1>Visual Diff Report - Test (Light Mode)</h1> |
An interactive visualization of Luigi Boccherini's complete string quartet output (1761-1804), displayed as a periodic table-inspired grid.
View it (via gisthack, see below for details):
| from itertools import permutations | |
| def main(): | |
| A = [24, 3, 'A', 6, 27, 0, 9, 'AB', 17, 'ABC', 14, 'AC'] | |
| B = [20, 4, 23, 7, 'B', 1, 26, 'BC', 16, 'ABC', 17, 'AB'] | |
| C = [11, 5, 22, 8, 'C', 2, 25, 'AC', 14, 'ABC', 16, 'BC'] | |
| # Figure out what numbers are missing. | |
| N = list(range(28)) | |
| n = set(i for i in A + B + C if type(i) == int) |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Pentagon Flower Generator</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| max-width: 1200px; |
| from matplotlib.colors import hex2color, rgb_to_hsv, XKCD_COLORS, CSS4_COLORS | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| class ColorNames: | |
| def __init__(self, color_dict, converter=hex2color): | |
| """ | |
| color dict: A map of names to hex values. | |
| converter: A function that takes a hex color and returns an array. |
| import matplotlib.pyplot as plt | |
| from matplotlib import transforms | |
| # See https://stackoverflow.com/a/79389836/2683 | |
| plt.style.use('classic') | |
| def multicolored_text(x, y, text, cd, **kw): | |
| """ | |
| Place text at (x, y) with colors for each word specified in the color | |
| dictionary cd, which maps strings to colors, and must include a 'default' |
| import requests | |
| from datetime import datetime | |
| import json | |
| """ | |
| Instructions: | |
| 1. go to https://swarmapp.com/history | |
| 2. open developer tools in browser, and navigate to the "network" tab. | |
| 3. filter for fetch/XHR | |
| 4. select a month in the dropdown |
Of humble origins, Franz Joseph Haydn was born in Rohrau, near Vienna, on 31 March 1732. When eight years old he was accepted into the choir school of Saint Stephen's Cathedral in Vienna, where he received his only formal education. Dismissed from the choir at the age of seventeen, when his voice broke, he spent the next several years as a struggling freelance musician. In 1755 Haydn was engaged briefly by Baron Karl Josef von Fürnberg, for whom he apparently composed his first string quartets. Haydn's marriage in 1760 to Maria Anna Keller proved to be unhappy. The turning point in Haydn's fortunes came in 1761, when he was appointed assistant music director to Prince Pál Antal Esterházy; a year later he became full director. As Kapellmeister, Haydn served under the patronage of thre
Of humble origins, Franz Joseph Haydn was born in the village of Rohrau, near Vienna, on March 31, 1732. When eight years old he was accepted into the choir school of Saint Stephen's Cathedral in Vienna, where he received his only formal education. Dismissed from the choir at the age of seventeen, when his voice broke, he spent the next several years as a struggling freelance musician. He studied on his own the standard textbooks on counterpoint and took occasional lessons from the noted Italian singing master and composer Nicola Porpora. In 1755 Haydn was engaged briefly by Baron Karl Josef von Fürnberg, for whom he apparently composed his first string quartets. Haydn's marriage in 1760 to Maria Anna Keller proved to be unhappy.