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 operator | |
| ABSOLUTE_ZERO = 0 | |
| class Temperature: | |
| _scale_classes = {} | |
| _promotion_rules = {} | |
| @classmethod |
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
| // More information: https://danielupshaw.com/openscad-rounded-corners/ | |
| // Set to 0.01 for higher definition curves (renders slower) | |
| $fs = 0.15; | |
| module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") { | |
| // If single value, convert to [x, y, z] vector | |
| size = (size[0] == undef) ? [size, size, size] : size; | |
| translate_min = radius; |
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 random | |
| class Maybe: | |
| def __init__(self, item=None): | |
| self._item = item | |
| def __iter__(self): | |
| if self._item is not None: |
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
| from dataclasses import dataclass | |
| import librosa | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| @dataclass | |
| class Audio: | |
| samples: np.ndarray | |
| rate: int |
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
| [ | |
| { | |
| "backcolor": "#201D1E", | |
| "name": "BBC Micro Model A, Model B or Model B+", | |
| "author": "Robert Smallshire" | |
| }, | |
| [ | |
| { | |
| "x": 2.5, | |
| "c": "#d34b3d", |
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
| [ | |
| { | |
| "backcolor": "#201D1E", | |
| "name": "BBC Micro Master 128", | |
| "author": "Robert Smallshire" | |
| }, | |
| [ | |
| { | |
| "x": 1.75, | |
| "c": "#d34b3d", |
OlderNewer