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 requests | |
| import time | |
| import os | |
| import re | |
| from tqdm import tqdm | |
| # Try APIs in order. Use {} for beatmapset_id formatting. | |
| DOWNLOAD_APIS = [ | |
| "https://api.nerinyan.moe/d/{}", | |
| "https://catboy.best/d/{}", |
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
| #[macro_use] | |
| extern crate tracing; | |
| use std::{collections::VecDeque, fmt::Display, net::SocketAddr}; | |
| use anyhow::{bail, Context, Error, Result}; | |
| use derive_more::{Deref, DerefMut}; | |
| use hickory_resolver::Resolver; | |
| use tokio::{ | |
| io::{copy_bidirectional, AsyncReadExt, AsyncWriteExt}, |
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 bash | |
| set -e | |
| GPU="0000_41_00" | |
| if [[ "$1" == "Windows-11-GPU" ]] | |
| then | |
| case "$2" in | |
| "prepare") | |
| echo "Preparing..." >&2 |
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
| use std::{collections::HashSet, time::Duration}; | |
| use anyhow::Result; | |
| use derive_config::{json::Value, DeriveJsonConfig, DeriveTomlConfig}; | |
| use headless_chrome::{browser::default_executable, Browser, LaunchOptions}; | |
| use serde::{Deserialize, Serialize}; | |
| #[derive(Debug, Default, DeriveJsonConfig, Deserialize, Serialize)] | |
| struct Combinations(HashSet<(String, String)>); |
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
| version: "3" | |
| services: | |
| windscribe-mountain: | |
| image: qmcgaw/gluetun | |
| container_name: windscribe-mountain | |
| # line above must be uncommented to allow external containers to connect. | |
| # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun | |
| cap_add: | |
| - NET_ADMIN | |
| devices: |
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 analogio | |
| import board | |
| import math | |
| import time | |
| voltage = analogio.AnalogIn(board.VOLTAGE_MONITOR) | |
| voltage_conversion_factor = 3 * 3.3 / 65535 | |
| def calculate_mean(data): | |
| return sum(data) / len(data) |
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
| using UnityEngine; | |
| using UnityEditor; | |
| using System.IO; | |
| using System.Linq; | |
| public class CubemapExtractor : Editor | |
| { | |
| private static readonly CubemapFace[] CubemapFaces = new CubemapFace[] | |
| { | |
| CubemapFace.PositiveX, // Right |
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 dataclasses import astuple, dataclass | |
| from yt_dlp import YoutubeDL | |
| from json import JSONEncoder | |
| from tqdm import tqdm | |
| import json | |
| class FakeLogger: | |
| def debug(self, msg): | |
| pass |
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
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| using UnityEngine.UI; | |
| using VRC.SDK3.Avatars.Components; | |
| using VRC.SDKBase.Editor; | |
| namespace ShayBox { |
NewerOlder