aspe:keyoxide.org:HWCHT25NNHGR2YDFZWD3DHYSOU
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
use std::collections::HashMap; | |
use tera::{to_value, try_get_value, Context, Error, Tera, Value}; | |
#[derive(Debug, serde::Serialize, serde::Deserialize)] | |
struct Hsl { | |
h: f64, | |
s: f64, | |
l: f64, | |
} |
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 much better pid that avoids integral windup | |
-- set these to your liking | |
local kp = 0.05 | |
local ki = 0.005 | |
local kd = 0.0 | |
-- only update integral when abs(error) is within this threshold | |
local ithresh = 5.0 | |
-- don't fiddle with these |
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
""" | |
How many distinct haikus are there in a language with 16 one-syllable words, 22 two-syllable words, | |
11 three-syllable words, 5 four-syllable words and 1 five-syllable word, assuming a haiku is simply | |
a set of words following the 5/7/5 format. | |
""" | |
import math | |
def constrained_partitions(n, k, min_elem, max_elem): | |
""" |
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
{ | |
"spec_version": "v1.18", | |
"identifier": "KSP-StockPlus", | |
"name": "KSP Stock+", | |
"abstract": "Mods that improve gameplay and visual fidelity, without fundamentally changing the game.", | |
"author": [ | |
"backwardspy" | |
], | |
"version": "v1.0", | |
"license": [ |
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 typing import Optional | |
from dataclasses import dataclass | |
import pyxel | |
@dataclass(frozen=True) | |
class Wall: | |
loc: tuple[int, int] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
import time | |
from subprocess import Popen | |
VICE_PATH = os.getenv("VICE_PATH") | |
FFMPEG_PATH = os.getenv("FFMPEG_PATH") | |
BASIC = r'10 print"\xefRFCDE\xf7EDCFR\xef";:goto 10"\nrun\n' |
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
[ | |
{ | |
"title": "Pyomm", | |
"scores": [ | |
{ | |
"category": "Was this entry made during the jam duration?", | |
"rank": "#1", | |
"score": "5.000", | |
"raw_score": "5.000" | |
}, |
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
--- CONFIG --- | |
-- minimum energy to store in the internal buffer as a fraction of the total | |
local BUFFER_MIN = 0.5 | |
--- maximum energy to store in the internal buffer as a fraction of the total | |
local BUFFER_MAX = 0.8 | |
--- END CONFIG --- | |
--- LIBRARIES --- | |
local component = require("component") |
NewerOlder