| File | Class | Prefix | Base? |
|--------------------------------------+---------------------------------------+---------------------------+-------|
| src/ape/api/config.py | ApeConfig(BaseSettings) | APE_API_ | no |
| src/ape/api/config.py | DeploymentConfig(PluginConfig) | APE_API_ | no |
| src/ape/api/config.py | PluginConfig(BaseSettings) | APE_API_ | yes |
| src/ape_cache/config.py | CacheConfig(PluginConfig) | APE_CACHE_ | no |
| src/ape_compile/config.py | Config(PluginConfig) | APE_COMPILE_ | no |
| src/ape_console/config.py | ConsoleConfig(PluginConfig) | APE_CONSOLE_ | no |
| src/ape_ethereum/ecosystem.py | BaseEthereumConfig(PluginConfig) | APE
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
function divide(a: bigint, b: bigint): number { | |
const PRECISION: bigint = 18n; | |
const EXP: bigint = 10n**PRECISION; | |
if (b === 0n) { | |
return 0; | |
} | |
const integer: bigint = a/b; | |
const remainder: bigint = a%b; | |
const fractional: bigint = (remainder * EXP) / b; | |
const result: bigint = integer * EXP + fractional; |
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
``` | |
$ python | |
Python 3.12.4 (main, Jun 7 2024, 06:33:07) [GCC 14.1.1 20240522] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> print(int(1e6) * int(1e18)) | |
1000000000000000000000000 | |
>>> print(int(1e6 * 1e18)) | |
999999999999999983222784 | |
>>> | |
``` |
---
title: github.com/ydm/mermaider
---
classDiagram
class `CommonBase` {
<<abstract>>
-address VM_ADDRESS
-address CONSOLE
-address CREATE2_FACTORY
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
#!/usr/bin/env python | |
from pathlib import Path | |
from base64 import b64encode, b64decode | |
from cryptography.hazmat.primitives import hashes | |
from cryptography.hazmat.primitives import serialization | |
from cryptography.hazmat.primitives.asymmetric import padding | |
from cryptography.hazmat.primitives.serialization.ssh import ( | |
SSHPrivateKeyTypes, |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
) | |
func f(ctx context.Context, xs []int) { |
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
unbind C-b | |
set-option -g prefix C-\\ | |
bind-key C-\\ send-prefix |
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
#!/bin/bash | |
# URL prefix | |
url_prefix='http://testing.mainnet.beacon-api.nimbus.team/eth/v2/beacon/blocks' | |
# Range of numbers to loop over | |
start=6209538 | |
end=9453725 | |
# Number of workers |
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
xbindkeys | |
openrazer-daemon | |
polychromatic | |
~/.xbindkeysrc | |
``` | |
"xdotool key KP_1" | |
b:9 |
NewerOlder