Skip to content

Instantly share code, notes, and snippets.

@deanputney
deanputney / twilight_matplotlib.py
Created February 11, 2025 19:01
Twilight Matplotlib
## From: https://www.reddit.com/r/generative/comments/1imyi7b/comment/mc6vx7c/
#!/usr/bin/env python3
# coding: utf-8
import matplotlib.pyplot as plt
import numpy as np
def main():
X, Y = np.meshgrid(
np.linspace(-1, 1, 500),
namespace collections;
class Program
{
static void Main(string[] args)
{
Console.Clear();
int account = 0;
@mypy-play
mypy-play / main.py
Created February 11, 2025 19:00
Shared via mypy Playground
Ty = TypeVar("Ty", str, int, float, bool, None)
SingularJsonTy: TypeAlias = dict[str, "SingularJsonTy"] | list["SingularJsonTy"] | Ty
legal_singular: SingularJsonTy = {}
legal_singular["a"] = 3;
legal_singular["b"] = 3;
@Manishfoodtechs
Manishfoodtechs / index.html
Created February 11, 2025 19:00
Vid upscale works
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video Processor</title>
<style>
body { font-family: Arial, sans-serif; max-width: 600px; margin: 20px auto; }
.progress-container { margin: 20px 0; }
progress { width: 100%; height: 20px; }
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 19:00
cursor-commander v1.0.0.0 - Passed - Package Tests Results
2025-02-11 18:58:45,980 3624 [DEBUG] - XmlConfiguration is now operational
2025-02-11 18:58:46,118 3624 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,118 3624 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,138 3624 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,138 3624 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,138 3624 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,153 3624 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,153 3624 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:58:46,153 3624 [DEBUG] - Adding new typ
@msaffitz
msaffitz / action_interface.py
Created February 11, 2025 18:59
Action Code
class Task:
    def __init__(self, name: str):
        self.name = name
class TaskExecutor:
    def __init__(self, id: int):
        self.id = id
    def execute(self, task: Task):
        """Executes a task and prints which worker processed it"""
const int TRANSFORMER_PIN = 8;
const int OPEN_COMMAND_PIN = 20;
const int CLOSE_COMMAND_PIN = 21;
const int SLOW_MODE_PIN = 9;
const int DOOR_OPEN_SENSOR_PIN = 0;
const int DOOR_CLOSE_SENSOR_PIN = 19;
const int TRANSFORMER_BTN_PIN = 5;
const int OPEN_BTN_PIN = 2;
const int CLOSE_BTN_PIN = 3;
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 18:58
windowsxappremover v1.02 - Passed - Package Tests Results
2025-02-11 18:57:04,052 3624 [DEBUG] - XmlConfiguration is now operational
2025-02-11 18:57:04,175 3624 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,175 3624 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,190 3624 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,190 3624 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,190 3624 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,190 3624 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,212 3624 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 18:57:04,212 3624 [DEBUG] - Adding new typ
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 18:57
podman-cli v5.4.0 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\podman-cli\podman-cli.nupkg" checksum="87E0959416ED6C60FBCDEC229E8A6E12" />
<file path="C:\ProgramData\chocolatey\lib\podman-cli\podman-cli.nuspec" checksum="5B8FE922D24ACE5B237F9B93A085B99E" />
<file path="C:\ProgramData\chocolatey\lib\podman-cli\podman-remote-release-windows_amd64.zip.txt" checksum="4C18CFA0262DF128697F6D28FF114116" />
<file path="C:\ProgramData\chocolatey\lib\podman-cli\tools\chocolateyInstall.ps1" checksum="8D928930B27F9B877611C4F3E349728D" />
<file path="C:\ProgramData\chocolatey\lib\podman-cli\tools\podman-5.4.0\containers.conf" checksum="1CD0C9673D9DBC9DA1D8B4134C827489" />
<file path="C:\ProgramData\chocolatey\lib\podman-cli\tools\podman-5.4.0\docs\podman-attach.html" checksum="161AA4D61563B11368504E712F1050F9" />
<file path="C:\ProgramData\chocol
@lolswirl
lolswirl / chi_harmony.lua
Created February 11, 2025 18:57
Chi Harmony Snippet
-- Version 1.0.3 by Swirl @lolswirl
local I = Cell.iFuncs
local colorIndicatorIndex = "indicator2"
local durationIndicatorIndex = "indicator8"
local chiHarmonyName = "Chi Harmony"
local function Update(indicator, indicatorTable, unit, spell, start, duration, debuffType, icon, count, refreshing)
if indicatorTable["num"] then