Skip to content

Instantly share code, notes, and snippets.

View sheepla's full-sized avatar
🐑
メェ〜

sheepla sheepla

🐑
メェ〜
View GitHub Profile
sequenceDiagram
    autonumber
    actor 男女
    participant suzume as スズメ
    participant kounotori as コウノトリ
    男女->>男女: セックス
    suzume->>男女: セックス確認
    suzume->>kounotori: 連絡
 kounotori->>kounotori: セックス
@lum1narie
lum1narie / dodosuko.nim
Last active August 3, 2022 12:37
ドドスコテスト KMP法
import std/random
import std/tables
import std/sets
import sequtils
type Dodosuko = enum
Dodo = "ドド"
Suko = "スコ"
DSNil = ""
@yohfee
yohfee / ddsk.fsx
Last active August 4, 2022 03:04
ドドスコード
let next =
let rand = System.Random()
fun () -> [| "ドド"; "スコ" |] |> Array.item (rand.Next 2)
let fin = String.replicate 3 "ドドスコスコスコ"
""
|> Seq.unfold (fun s ->
if s.EndsWith(fin) then
None
@AWtnb
AWtnb / get_default_browser.py
Created May 20, 2022 01:39
get default browser path with Python (on Windows10)
import re
from winreg import HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, OpenKey, QueryValueEx
def get_browser_name() -> str:
register_path = r'Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice'
with OpenKey(HKEY_CURRENT_USER, register_path) as key:
return str(QueryValueEx(key, "ProgId")[0])
def format_cmd(s:str) -> str:
exe_path = re.sub(r"(^.+exe)(.*)", r"\1", s)
@YusukeHosonuma
YusukeHosonuma / jojo.md
Created May 8, 2022 05:35
開発で使えるJOJOの名言集

この○○が金やちやほやされるために技術ブログを書いていると思っているのかァーッ!!

技術ブログを書いていることをアフェリエイト目的とか、PV目的だとか言われた時に。

なるほど完璧な開発プロセスっスねーーーっ不可能だという点に目をつぶればよぉ〜

一見完璧に聞こえるけど、どう考えたって上手く回らない開発プロセスの説明を受けた時に。

理解不能理解不能・・・あ、理解可能

ようやく理解できた時に。

お前は1つの修正が終わったらキチっとコミットしてから次の修正に入るだろう? 誰だってそーする。俺もそーする。

@greymd
greymd / teip2.md
Last active May 30, 2023 16:10
teip v2.0 でヤバい機能がついた件

teip v2.0 でヤバい機能がついた件

teip コマンド に関するお話

まとめ

  1. teip v2.0 に新機能:マッチオフロード機能
  • テープの穴をあける行の指定に外部コマンドが使えるようになった
  1. あるコマンドの抽出範囲のみを、範囲外は残したまま、別のコマンドで編集可能になる
@AWtnb
AWtnb / mokof.go
Last active July 23, 2023 11:38
fuzzy-filter for PowerShell
package main
import (
"bufio"
"flag"
"fmt"
"os"
"github.com/ktr0731/go-fuzzyfinder"
)
@qguv
qguv / vscode-wayland.md
Last active September 28, 2025 16:52
Visual Studio Code: Enable native Wayland support

Native wayland support is now working consistently for me in VSCode, giving much better text rendering. Unfortunately, it's still hidden behind some command-line flags.

By adding some files to /usr/local/*, you can ensure that VSCode always launches with these flags.

Adding launch flags to VSCode

Assuming that the VSCode launcher is /usr/bin/code-oss (as is the case in Arch):

  1. Create /usr/local/bin/code-oss with the following content:
@AlexRainHao
AlexRainHao / win10_capslock_to_ctrl.md
Last active June 27, 2023 15:19
win10 CapsLock to Ctrl
  • Open PowerShell as Administrator
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};

$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';

New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
@AumyF
AumyF / 2021-12-31-ウマ娘のリセマラで使った競走馬っぽい名前.md
Created December 31, 2021 15:29
ウマ娘のリセマラで使った競走馬っぽい名前
  • シェルスクリプト
  • プライバシーポリシー
  • ウェブアセンブリ
  • グーグルクラウド
  • シューマツデプロイ
  • スクラップボックス
  • スタンダードアイオー
  • パワーオートメート
  • コマンドプロンプト
  • イベントビューアー