Skip to content

Instantly share code, notes, and snippets.

View gcrtnst's full-sized avatar
🎮
Playing Stormworks

gcrtnst

🎮
Playing Stormworks
  • Japan
View GitHub Profile
@gcrtnst
gcrtnst / wl-key-pastemd
Last active October 26, 2025 07:58
Paste HTML as Markdown on Wayland
#!/bin/sh
# SPDX-License-Identifier: Unlicense
# Converts the HTML-formatted clipboard selection to Markdown and pastes it into the foreground window.
# Requires Wayland and the commands listed in the "check_command" section below to be installed.
# Configure your system to launch this script with your preferred shortcut key.
set -efu
check_command() {
@gcrtnst
gcrtnst / aircraft_hud_v3.lua
Created October 27, 2020 12:26
[Stormworks]Source code of the HUD on Kinoko
lib_input_getBool = input.getBool
lib_input_getNumber = input.getNumber
lib_map_mapToScreen = map.mapToScreen
lib_math_abs = math.abs
lib_math_atan = math.atan
lib_math_cos = math.cos
lib_math_floor = math.floor
lib_math_max = math.max
lib_math_min = math.min
lib_math_pi = math.pi
@gcrtnst
gcrtnst / swlog.go
Last active August 30, 2020 02:40
Stormworks: Build and Rescue 用データロガー
// Stormworks: Build and Rescue 用データロガーです。
//
// 使い方:
// 1. Microcontroller の Lua で httpGet 関数を使用し、ログ送信機能を実装します。
// httpGet(port, request_body)
// port: 54631
// request_body: 記録したい文字列
// 2. このツールを実行します。
// 3. ログ送信機能を実装した乗物をスポーンさせると、送信された文字列が
// ツールから標準出力されます。