Skip to content

Instantly share code, notes, and snippets.

View typebird's full-sized avatar
📖
Many things

竹鳥 typebird

📖
Many things
View GitHub Profile
@typebird
typebird / snippet_DisplayOptionsOneByOne.js
Created October 29, 2021 07:06
This snippet allows most RPG Maker MZ's options to be display one by one.
//=============================================================================
// RPG Maker MZ - Snippet: Display Options One by One
//=============================================================================
/*:
* @target MZ
* @author 竹鳥
* @plugindesc (v1.0.0) 令所有選擇項目逐一顯示。
*
* @help snippet_DisplayOptionsOneByOne.js
@typebird
typebird / main.rs
Last active September 6, 2020 14:30
簡單的猜數字遊戲。
mod numbers;
mod process;
use process::GameProcess;
fn main() {
println!("請輸入你猜測的數字,或者輸入 exit 以退出:");
GameProcess::execute();
}
import fp from "fastify-plugin"
import SocketIOServer from "socket.io"
import type { FastifyInstance, FastifyError } from "fastify"
export default fp((
fastify: FastifyInstance,
options: any,
next: (err?: FastifyError | undefined) => void) => {
@typebird
typebird / todolist.js
Last active April 6, 2020 09:08
一個簡單的終端機待辦表小程式。
const rl = require("readline").createInterface({
input: process.stdin,
output: process.stdout,
})
const path = require("path")
const fs = require("fs")
const SAVE_PATH = path.join(__dirname, "./save.txt")