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
from ext4 import Volume | |
from ext4.inode import Directory,InodeError | |
from tqdm import trange | |
def scan( | |
begin = 2, | |
end = None, | |
device = "/dev/sdb3", | |
children = ["rke2", "server", "db", "snapshots"], | |
prefix = "etcd-snapshot", |
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
import contextlib | |
from functools import wraps, partial | |
from reprlib import recursive_repr | |
from typing import List | |
class PipelineHandler: | |
def __init__(self, func, args, kwargs, manualNext: bool = False): | |
self.func = func | |
self.args = args |
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
import os | |
from datetime import datetime | |
from ding.config.config import save_project_state, save_config | |
from ding.envs import get_env_cls, get_env_manager_cls | |
from ding.policy import get_policy_cls | |
from ding.reward_model import get_reward_model_cls | |
from ding.utils import deep_merge_dicts | |
from ding.worker import BaseSerialCommander, BaseLearner, InteractionSerialEvaluator, get_serial_collector_cls, \ | |
get_buffer_cls |
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
import {useStore} from "@/store"; | |
import {createPinia, getActivePinia, setActivePinia} from "pinia"; | |
class TestStore { | |
hello = "INIT" | |
get helloMe() { | |
return this.hello + "me" | |
} |
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
yum -y install wget unzip java-11-openjdk | |
wget https://github.com/TinyLake/MindustryX/releases/download/v2025.05.X9/server-2025.05.X9.jar | |
mkdir -p config/mods && cd config/mods | |
wget https://github.com/way-zer/ScriptAgent4MindustryExt/releases/download/v3.3.0/ScriptAgent4MindustryExt-3.3.0.jar | |
cd .. | |
mkdir scripts && cd scripts | |
wget https://github.com/way-zer/ScriptAgent4MindustryExt/releases/download/v3.3.0/ScriptAgent4MindustryExt-3.3.0-scripts.zip | |
# https://github.com/way-zer/ScriptAgent4MindustryExt/releases/download/v3.3.0/ScriptAgent4MindustryExt-3.3.0-precompile.packed.zip |
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 mapScript | |
import arc.util.Align | |
import coreMindustry.lib.game | |
import mindustry.Vars | |
import mindustry.gen.Call | |
onEnable { | |
launch(Dispatchers.game) { | |
while (true) { |
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
import kotlin.contracts.ExperimentalContracts | |
import kotlin.contracts.InvocationKind | |
import kotlin.contracts.contract | |
fun AsmBuilder.bindUnit(type: AsmBuilder.Variable, one: Boolean = true): AsmBuilder.Variable { | |
val unit = variable("@unit") | |
lateinit var bind: AsmBuilder.IntValue | |
fun bindU() { | |
bind = anchor() | |
line("ubind $type") |
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
/** | |
* Firmata for Arduino with ESP8266 Shield | |
* Used Library: ConfigurableFirmata and WiFiEsp(Hacked) | |
* Made by Way-Zer | |
*/ | |
const char SERVER[] = "10.0.0.1"; | |
#define PORT 9999 | |
char SSID[] = "SSID"; | |
char PASSWORD[] = "YOU-WIFI-PASSWORD"; |