This file contains 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
use std::io::IsTerminal; | |
use std::num::NonZeroUsize; | |
use std::path::{Path, PathBuf}; | |
use anyhow::Result; | |
use serde::de::Visitor; | |
use serde::{Deserialize, Deserializer, Serialize}; | |
use tracing::Subscriber; | |
use tracing_appender::rolling::Rotation; | |
use tracing_subscriber::filter::Directive; |
This file contains 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
import os | |
def process_file(file_path): | |
if "test" in file_path or "network" in file_path or "target" in file_path: | |
return | |
if not file_path.endswith(".rs"): | |
return | |
modified_lines = [] |
This file contains 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
"TonUtil.fif" include | |
"Asm.fif" include | |
"Lists.fif" include | |
"GetOpt.fif" include | |
{ show-options-help 1 halt } : usage | |
false =: tick | |
false =: tock | |
variable extra-currencies |
This file contains 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
import { Address, ProviderRpcClient } from "everscale-inpage-provider"; | |
import { EverscaleStandaloneClient } from "everscale-standalone-client/nodejs"; | |
const ever = new ProviderRpcClient({ | |
forceUseFallback: true, | |
fallback: () => | |
EverscaleStandaloneClient.create({ | |
connection: { | |
id: 123, | |
type: "proto", |
This file contains 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
WHITESPACE = _{ " " | NEWLINE } | |
COMMENT = _{ | |
("//" ~ (!NEWLINE ~ ANY)*) | | |
("/*" ~ (!"*/" ~ ANY)* ~ "*/") | |
} | |
tlb_scheme = _{ SOI ~ (declaration)* ~ EOI } | |
declaration = { constructor ~ type_arg* ~ field_group* ~ "=" ~ output_type ~ ";" } |
This file contains 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
{ | |
"@type": "config.global", | |
"dht": { | |
"@type": "dht.config.global", | |
"k": 6, | |
"a": 3, | |
"static_nodes": { | |
"@type": "dht.nodes", | |
"nodes": [ | |
{ |
This file contains 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
te6ccgECdQEAFD4AA7d61FeCHf8yG3+VsHLEilQ6UuYy8wcpWi1+/eB+QyLiYMAAAahJB7OYkL2Pl+S0sBbapRCERwSsVWKsZ/1WGbNouh5HwPhxSiGAAAGoP8TeAJYumenAAFSARBWHSAUEAQIbBIgLyR0Jj8WYgCdHLREDAgBxygFZfVBPmUqMAAAAAAAGAAIAAAAEW8033SNQ2/1TE9Nzuof+lf33h4/sRfFyiGy4DaJos2pa1CzcAJ5KDiw9CQAAAAAAAAAAATMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIJyjI1j6xocdf/ts8UpUE4PQBjq+eZ4ePLwpE1tDGf3pHcFUnuY03DQrIX8ExegcAhTl+187mhCPuegYR4tBS3ejwIB4HEGAgHdCgcBASAIAbFoAVqK8EO/5kNv8rYOWJFKh0pcxl5g5StFr9+8D8hkXEwZAB03C5ZU3g0onstArcVRQt2q942P0t/N68CNCNeI9IxfETHWk3wGKJa2AAA1CSD2cxbF0z04wAkBa2eguV8AAAAAAAAAAAAAAANFARhPgB374hjvHSKb7xHdyPtVEPFzv/+BeyMtxMrKJu6jDYpu8HMBASALArNoAVqK8EO/5kNv8rYOWJFKh0pcxl5g5StFr9+8D8hkXEwZAB03C5ZU3g0onstArcVRQt2q942P0t/N68CNCNeI9IxfEI8NGAAIA3C5RAAANQkg9nMUxdM9OeBTDAJTFaA4+wAAAAGAHfviGO8dIpvvEd3I+1UQ8XO//4F7Iy3Eysom7qMNim7wDg0AQ4AVmHZxK25XVSkUA1uAHGOMneWjMhSxqkQWdAyAImMM0RACBorbNXAPBCSK7VMg4wMgwP/jAiDA/uMC8gtNERB0A77tRNDXScMB+GaJ+Gkh2zzTAAGOGoECANcYIPkBAdMAAZTT/wMBkwL4QuL5EPKoldMAAfJ64tM/AfhD |
This file contains 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
fn lo128(a: u128) -> u128 { | |
a & ((1<<64)-1) | |
} | |
/// Returns the most significant 64 bits of a | |
fn hi128(a: u128) -> u128 { | |
a >> 64 | |
} | |
/// Returns 2^128 - a (two's complement) |
This file contains 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
WHITESPACE = _{ " " | NEWLINE } | |
COMMENT = _{ | |
("//" ~ ANY* ~ (NEWLINE | EOI) ) | | |
("/*" ~ (!"*/" ~ ANY)* ~ "*/") | |
} | |
ident_char = @{ ASCII_ALPHANUMERIC | "_" } | |
lc_ident = @{ ASCII_ALPHA_LOWER ~ ident_char* } | |
uc_ident = @{ ASCII_ALPHA_UPPER ~ ident_char* } |
This file contains 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
#################################################################################################### | |
# This function converts any file into C/C++ source code. | |
# Example: | |
# - input file: data.dat | |
# - output file: data.h | |
# - variable name declared in output file: DATA | |
# - data length: sizeof(DATA) | |
# embed_resource("data.dat" "data.h" "DATA" UNSIGNED) | |
#################################################################################################### | |
function(embed_resource resource_file_name source_file_name variable_name type) |
NewerOlder