Skip to content

Instantly share code, notes, and snippets.

View mugisaku's full-sized avatar

麦作 mugisaku

View GitHub Profile
@mugisaku
mugisaku / mapmap.html
Created February 25, 2025 06:52
地面系のタイル画像を生成するぜ
<!DOCTYPE html>
<html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<head>
<script type="text/javascript">
<!-->
@mugisaku
mugisaku / plplpon.cpp
Last active January 19, 2026 06:01
youtubeのプレイリストのソースからHTMLテーブルの一部を生成
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cstdint>
#include<string>
#include<vector>
#include<cctype>
struct
@mugisaku
mugisaku / memsit.cpp
Created May 10, 2023 04:09
空きメモリ量が一定値を下回ったら、beep音を鳴らすぞ
#include<cstdio>
#include<cstdlib>
#include<cstdint>
#include<cinttypes>
#include<cstring>
#include<unistd.h>
uint64_t
get_available()
@mugisaku
mugisaku / 不老不死の一族
Last active April 21, 2019 05:47
お話のタネ
不老不死とされる一族があった
正確に言えば、それは若返りであった
齢80頃になると多食になり、脂肪を多くつけると
約4~5年の深い眠りについた
その間、極弱い呼吸があり、肉体は徐々に乾燥し、縮んでいった
時が満ちると、呼吸が途絶え、身体を微動させ始める
すると、全身ひび割れて崩れ去り、中から同じ性別の幼児が現れる
その子は以前の知能や記憶を持たないが
成長すれば、かつての容姿そのままだった
そして再び80近くの年月を生きた
@mugisaku
mugisaku / process.cpp
Last active January 9, 2019 06:13
コールバック関数をコールスタック的な構造を使って取り扱う
#include"process.hpp"
namespace{
constexpr uint32_t g_offset_of_frame_nameptr = 0;
constexpr uint32_t g_offset_of_previous_bp = 1;
constexpr uint32_t g_offset_of_previous_pc = 2;
constexpr uint32_t g_offset_of_entry_array = 3;