Skip to content

Instantly share code, notes, and snippets.

View ygkn's full-sized avatar
A believing heart is your magic.

YAGITA Yugo ygkn

A believing heart is your magic.
View GitHub Profile
[
{
"word": "Asshole",
"kana": "アスホール",
"meaning": "いやな奴(Ass=お尻、Hole=穴)",
"notice": "「うざい野郎」「ろくでなし」"
},
{
"word": "あばずれ",
"kana": "あばずれ",
@sheepla
sheepla / 小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る.md
Last active February 11, 2024 23:19
小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る

📸小さな道具を組み合わせてWayland環境でスクリーンショット/スクリーンキャストを撮る

長らくX11とi3wmを使っていたが、重い腰を上げてWaylandに入門してみた。

Hyprland、Sway等、wl-toolsベースのWaylandコンポジタを使用している場合、スクリーンショット/スクリーンキャストを撮るには、grimwf-recorder 等のツールを使う。 小さなユーティリティを柔軟に組み合わせて目的を達成するやり方が面白かったのでここにメモする。

各種ユーティリティをインストールする

theme marp
gaia
true

Qwik それはフロントエンドの見た夢 Long Version

@mizchi | PWA Night


@buyoh
buyoh / 2022pronamaxmas.cpp
Created December 21, 2023 13:25
#クリスマスプロ生ちゃん もみの木をdispmanxだけで描画する https://twitter.com/shonen9th/status/1737826399497666618
// ## Build
// g++ --std=c++17 tree2.cpp -o tree2 -lbcm_host
//
// ## Remarks
// DRM VC4 V3D driver needs to be disabled.
// Open `/boot/config.txt` and commented out `dtoverlay=vc4-fkms-v3d`.
#include "bcm_host.h"
#include <cassert>
@Hayao0819
Hayao0819 / jirou.ts
Created December 20, 2023 08:06
ラーメン二郎の型定義
export type MenuAmount = "マシ" | "多め" | "マシマシ" | "かなり多め" | "普通" | "少なめ" | "無し";
export type IsGarlicAdded =
| "全てマシ"
| "全て普通"
| "全て少なめ"
| {
ニンニク?: MenuAmount;
ヤサイ?: MenuAmount;
アブラ?: MenuAmount;
@sheepla
sheepla / オフチョベットしたテフをマブガットしてリットにする.fsx
Last active February 17, 2024 13:49
オフチョベットしたテフをマブガットしてリットにする.fsx
let テフ = "テフ"
let アブシィト = "アブシィト"
let ミタッド = "ミタッド"
let オフチョベット = fun 食べ物 -> $"オフチョベットした{食べ物}"
let マブガット = fun 食べ物 -> $"{食べ物}をマブガットして"
let 発酵 = fun 食べ物 -> $"発酵した{食べ物}"
let 混ぜる = fun あれ これ -> $"{あれ}に{これ}を加えて混ぜたもの"
let 焼く = fun 器具 食べ物 -> $"あとは{食べ物}を{器具}で焼くだけよ"
@mizchi
mizchi / singlefile-frontend.md
Created November 23, 2023 10:27
How to run a minimal front-end stack in Single-File for prototyping.

Original(japanese) https://zenn.dev/mizchi/articles/standalone-html-frontend

Mostly translated by deepl


How to run a minimal front-end stack in Single-File for prototyping.

Note: Do not use in production, tailwind is running in CDN mode and esm.sh builds scripts dynamically, so performance is not good.

@sheepla
sheepla / かーごめかごめ.md
Last active September 10, 2023 02:11
かーごめかごめ.md

cargocargo

Cargoの中のtoml

いついつ出会う

nightly の版に

ビルドとテストが滑った

@Hayao0819
Hayao0819 / destroy.sh
Last active June 22, 2023 17:35
シェル芸ロシアンルーレット
#!/bin/sh
# 参考
# https://qiita.com/_-_-_-_-_/items/214d537aae2c1488692c
get_random(){
od -v -An --width=1 -tu1 -N1 < /dev/urandom | \
awk "{ print \$1 % 10 }"
}
@Comamoca
Comamoca / onimai.md
Last active November 27, 2023 01:04
flowchart TB
A[あり] --> B[なし] --> B
B --> A
A --> C[ついて] --> E[] --> C
C --> D[ない] --> F[あれ]
F --> G[どっち] --> G
G --> I[trans] --> I
I --> I
I --&gt; I