Skip to content

Instantly share code, notes, and snippets.

import pygame
import numpy as np
from dataclasses import dataclass
from typing import Tuple, List, Optional
# ==========================================
# PART 1: ALGORITHM & LOGIC (Math Core)
# ==========================================
@dataclass
<style>
* {
box-sizing: border-box;
font: 12px "Tahoma";
}
#dynamicForm {
width: 100%;
height: 100%;
margin: 0;
@Gao-Weidong
Gao-Weidong / .states...vm-prague...state.json
Created December 2, 2025 02:54
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=undefined&runs=200&gist=
{
"db": {
"0490f0d98c06a6234cc374564f984580f33770d4605e5781451d4971d3235a2d": "0xf873a1205931b4ed56ace4c46b68524cb5bcbf4195f1bbaacbe5228fbd090546c88dd229b84ff84d8089056bc75e2d63100000a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"937514b0e72ad8da6bb5e656f25334fb09e7018992ae794d5c237fbf27a5db15": "0x8e1c15a05e7923479e934a37799e442d7755651f86c381f5dd9ece6b036bfac8",
"ac59032c139346dba6925ea119f110bc037a945991f7349e218edbe12d6d43e9": "0xf872a03931b4ed56ace4c46b68524cb5bcbf4195f1bbaacbe5228fbd090546c88dd229b84ff84d8089056bc75e2d63100000a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"b57eae55d1d898a1388d3065de9102d0f6ade3423b29be2482e1626394acd99f": "0xf872a0399bf57501565dbd2fdcea36efa2b9aef8340a8901e3459f4a4c926275d36cdbb84ff84d8089056bc75e2d63100000a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d24

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@Elradave
Elradave / contracts...AnyToken.sol
Created December 2, 2025 02:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "contracts/Owner.sol";
interface IERC20 {
event Transfer(address indexed sender, address indexed recipient, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
@natsukium
natsukium / zenn-cli
Created December 2, 2025 02:53
system: x86_64-linux | build_time: a minute | https://github.com/NixOS/nixpkgs/pull/466567
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/m7hk4m65hnydh6pvg0wr523lqwplvdg5-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
25-14304-FD | 12/1/2025 21:50:01 | INDOOR ODOR OF GAS | | 784 Merrimack St, Lowell, MA 01854, USA

Find providerMetadata→providerOptions mapping origin (@general subagent)

Session ID: ses_5230aaf1fffeVBHnEw6TZWhT0O Created: 12/1/2025, 6:47:35 PM Updated: 12/1/2025, 6:51:48 PM


User

@headius
headius / stringio.diff
Created December 2, 2025 02:52
Removing ptr from StringIO, which is not compatible with dup'ing
diff --git a/ext/java/org/jruby/ext/stringio/StringIO.java b/ext/java/org/jruby/ext/stringio/StringIO.java
index f3ab1cf..9c58077 100644
--- a/ext/java/org/jruby/ext/stringio/StringIO.java
+++ b/ext/java/org/jruby/ext/stringio/StringIO.java
@@ -79,27 +79,17 @@ import static org.jruby.util.RubyStringBuilder.types;
@JRubyClass(name="StringIO")
@SuppressWarnings("serial")
public class StringIO extends RubyObject implements EncodingCapable, DataType {
- static class StringIOData {
- /**
package net.minecraft.client;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.registry.GameData;
import cpw.mods.fml.common.registry.ItemData;
import cpw.mods.fml.relauncher.ArgsWrapper;
import cpw.mods.fml.relauncher.FMLRelauncher;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;