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 / .deps....raw_paths.json
Created August 5, 2026 21:52
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=
{
"hardhat@3.12.0/console.sol": ".deps/npm/hardhat@3.12.0/console.sol"
}
@Dustin4444
Dustin4444 / scripts...deploy_with_ethers.ts
Created August 5, 2026 21:49
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=
// This script can be used to deploy the "Storage" contract using ethers.js library.
// Please make sure to compile "./contracts/1_Storage.sol" file before running this script.
// And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S
import { deploy } from './ethers-lib'
(async () => {
try {
const result = await deploy('Storage', [])
console.log(`address: ${result.address}`)
@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 / README.txt
Created August 5, 2026 21:41
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=
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created with 'Default' template
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with increasing levels of complexity.
@Dustin4444
Dustin4444 / .deps...npm....resolution-index.json
Created July 29, 2026 07:20
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=
{
".deps/remix-tests/remix_accounts.sol": {
"__sources__": {
".deps/remix-tests/remix_accounts.sol": {
"content": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity >=0.4.22 <0.9.0;\n\nlibrary TestsAccounts {\n function getAccount(uint index) pure public returns (address) {\n return address(0);\n }\n}\n",
"file": ".deps/remix-tests/remix_accounts.sol"
}
}
}
}
@Dustin4444
Dustin4444 / pom.xml
Created July 6, 2026 09:18 — forked from CoolgaDV/pom.xml
Sample pom.xml with basic dependency and plugin management
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<!--Replace ${groupId}, ${artifactId} and ${name} below with proper values-->
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<name>${name}</name>
@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();
@Dustin4444
Dustin4444 / .cloud.debugger...generated-sources...#utility.yul
Created June 2, 2026 06:40
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=undefined&gist=
{
function cleanup_t_bool(value) -> cleaned {
cleaned := iszero(iszero(value))
}
function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {
mstore(pos, cleanup_t_bool(value))
}