Skip to content

Instantly share code, notes, and snippets.

public class ExitTrigger : MonoBehaviour
{
[SerializeField] private string levelName;
private void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
GameEvents.InvokeSceneChange(levelName);
}
@Roninkoi
Roninkoi / vtkToObj.py
Last active October 24, 2024 06:04
Convert vtkUnstructuredGrid VTK file to Wavefront OBJ file or STL file
#!/bin/env python3
# Convert vtkUnstructuredGrid VTK file to Wavefront OBJ file or STL file
import sys
import os
import vtk
if len(sys.argv) != 3:
print('Usage: ', sys.argv[0], 'in.vtk out.obj')
sys.exit()
@bennyhuo
bennyhuo / init.gradle.kts
Last active September 14, 2025 10:18
How to config mirrors for repositories in Gradle without changing the source code of your project?
fun RepositoryHandler.enableMirror() {
all {
if (this is MavenArtifactRepository) {
val originalUrl = this.url.toString().removeSuffix("/")
urlMappings[originalUrl]?.let {
logger.lifecycle("Repository[$url] is mirrored to $it")
this.setUrl(it)
}
}
}
@CHIZI-0618
CHIZI-0618 / PuerNya_sing-box_fakeip_client_config.jsonc
Last active October 13, 2025 13:37
sing-box 带有 Proxy Providers 的客户端配置示例
{
"log": {
"level": "info",
"output": "sing-box.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "cloudflare",
@bitmunja
bitmunja / chatgpt-width.user.js
Last active August 16, 2025 03:33
ChatGPT width
// ==UserScript==
// @name ChatGPT / Gemini / Claude Width
// @namespace http://tampermonkey.net/
// @version 0.11
// @description increase chatgpt, gemini and claude box width
// @author bitmunja
// @license MIT
// @match https://gemini.google.com/*
// @match https://chat.openai.com/*
// @match https://chatgpt.com/*
@adrianhajdin
adrianhajdin / constants.js
Created March 3, 2023 09:28
Build and Deploy an Amazing 3D Web Developer Portfolio with ThreeJS | React Three Fiber
import {
mobile,
backend,
creator,
web,
javascript,
typescript,
html,
css,
reactjs,

Git for Windowsにpacmanをインストールする

Git for Windowsの環境にMSYS2で使えるパッケージマネージャpacmanをインストールする。

  1. Git Bashを管理者権限で立ち上げる

  2. MSYS2のzstパッケージを解凍するためzstd.exeを/usr/local/binに配置

mkdir -p /usr/local/bin
curl -o /usr/local/bin/zstd.exe -L https://github.com/git-for-windows/git-sdk-64/blob/main/usr/bin/zstd.exe?raw=true
@disini
disini / BT 磁力搜索引擎索引
Created May 13, 2022 15:54 — forked from huazhanshen/BT 磁力搜索引擎索引
BT 磁力搜索引擎索引
btkitty
知名的BT磁力搜索,资源很多
http://cnbtkitty.com/
备用域名:http://btkitty.fyi/
idope.se
资源丰富的BT磁力搜索,并且大多数速度下载速度很快
https://idope.se/
@origamiofficial
origamiofficial / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js
Created March 25, 2022 04:42
Recaptcha Solver in Browser | Automatically solves Recaptcha in browser by engageub | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest