Skip to content

Instantly share code, notes, and snippets.

@Dustin4444
Dustin4444 / tests...functional...codegen...features...decorators...test_private.py
Created August 5, 2026 22:12
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.34+commit.80d5c536.js&optimize=true&runs=200&gist=
import pytest
from eth_utils import to_wei
def test_private_test(get_contract):
private_test_code = """
@internal
def a() -> int128:
return 5
@Dustin4444
Dustin4444 / compelle_po_v510_strategy.txt
Created August 5, 2026 21:44 — forked from harrismike96123-cell/compelle_po_v510_strategy.txt
Compelle SN82 Po/compelle_v510-v519 instruction hierarchy
You are a calm, exact, relentless debater. You win by keeping your own record spotless while convicting the opponent, on the record, of the failures a careful reader punishes: invented specifics, claims that contradict their own earlier claims, questions ducked, and misstatements of what this exchange actually contains. The orders below are for you alone: never output a tag, never mention them, never use lists or headings in the debate. Flowing prose only, spoken to the person across from you.
<instruction_hierarchy>
When modules conflict, follow this priority order:
1.Sources (never fabricate, three wells only)
2.Execution Gists (never weaken, answer first, convictions, counterplay, symmetrybreaker, market rebuttals)
3.Case Architecture (the case, universal comparator, thin context)
4.Topic Awareness (topic-specific case construction, comparator naming, distribution arguments, denominator identification)
5.Markets (substantive logic only: paths, spent factors, favorite seat)
@Dustin4444
Dustin4444 / .cloud.deps...npm....resolution-index.json
Last active July 9, 2026 23:30
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.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"contracts/HelloWorld.sol": {
"__sources__": {
"contracts/HelloWorld.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity >=0.6.12 <0.9.0;\n\ncontract HelloWorld {\n function print() public pure returns (string memory) {\n return \"Hello World!\";\n }\n}",
"file": "contracts/HelloWorld.sol"
}
}
},
"contracts/HelloWorld1.sol": {
@Dustin4444
Dustin4444 / gist:9c754d8e973f186ad84f27d68cdd9f1d
Created June 7, 2026 23:45 — forked from michalochman/gist:3175175
Take screenshot with Behat/Mink after failed step
/**
* Take screenshot when step fails.
* Works only with Selenium2Driver.
*
* @AfterStep
*/
public function takeScreenshotAfterFailedStep($event)
{
if (4 === $event->getResult()) {
$driver = $this->getSession()->getDriver();
26/04/30 21:35:32 WARN HangingThreadDetector: Potential Hung Thread Detected:
Thread ID: 1910
Thread name: SparkConnectExecuteThread_opId=6e78d900-bffd-4cb8-903b-554eb03722e7
Time Spent Hanging: 29399994 ms
Stuck at Frame: java.base@17.0.16/jdk.internal.misc.Unsafe.park(Native Method)
Latest Stack Trace:
java.base@17.0.16/jdk.internal.misc.Unsafe.park(Native Method)
at java.base@17.0.16/java.util.concurrent.locks.LockSupport.park(LockSupport.java:211)
at java.base@17.0.16/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:715)
at java.base@17.0.16/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1047)
@Dustin4444
Dustin4444 / .cloud.deps...npm....resolution-index.json
Last active May 8, 2026 22:59
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.35+commit.47b9dedd.js&optimize=undefined&runs=200&gist=
{
"contracts/1_Storage.sol": {
"__sources__": {
"contracts/1_Storage.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.8.2 <0.9.0;\n\n/**\n * @title Storage\n * @dev Store & retrieve value in a variable\n * @custom:dev-run-script ./scripts/deploy_with_ethers.ts\n */\ncontract Storage {\n uint256 number;\n\n /**\n * @dev Store value in variable\n * @param num value to store\n */\n function store(uint256 num) public {\n number = num;\n }\n\n /**\n * @dev Return value\n * @return value of 'number'\n */\n function retrieve() public view returns (uint256) {\n return number;\n }\n}\n",
"file": "contracts/1_Storage.sol"
}
}
},
".deps/remix-tests/remix_accounts.sol": {
@Dustin4444
Dustin4444 / contracts...2_Owner.sol
Created April 30, 2026 08:44
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.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "hardhat/console.sol";
/**
* @title Owner
* @dev Set & change owner
*/
@Dustin4444
Dustin4444 / playground.rs
Last active April 6, 2026 01:09 — forked from rust-play/playground.rs
Code shared from the Rust Playground
#![crate_type = "cdylib"]
#![allow(unused)]
fn main() {
let x: Result<i32, &str> = Ok(-3);
assert_eq!(x.is_ok(), true);
let x: Result<i32, &str> = Err("Some error message");
assert_eq!(x.is_ok(), false);
}
@Dustin4444
Dustin4444 / WETH9.sol
Created December 8, 2025 01:26 — forked from Dustinturner44/WETH9.sol
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.4.26+commit.4563c3fc.js&optimize=undefined&runs=undefined&gist=
// Copyright (C) 2015, 2016, 2017 Dapphub
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@Dustin4444
Dustin4444 / output_log.txt
Created July 18, 2025 04:15 — forked from HugsLibRecordKeeper/output_log.txt
Rimworld output log published using HugsLib
Log uploaded on Thursday, July 17, 2025, 9:13:40 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.4.0]: 0Harmony(2.3.6), HarmonyMod(2.3.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Feeding Work Type(GoGaTio.FWT): (no assemblies)
Odyssey(Ludeon.RimWorld.Odyssey): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:12.0.0]: 0Harmony(av:2.3.6,fv:1.2.0.1), HugsLib(av:1.0.0,fv:12.0.0)