Skip to content

Instantly share code, notes, and snippets.

View foooomio's full-sized avatar
🎵
#PrayForKyoani

foooomio foooomio

🎵
#PrayForKyoani
View GitHub Profile
@foooomio
foooomio / anime.txt
Last active July 30, 2023 16:02
見たアニメのリスト
[2005]
苺ましまろ
[2007]
ひだまりスケッチ
[2008]
ひだまりスケッチ×365
ストライクウィッチーズ
#!/bin/bash
set -eu
DOUKUTSU_DIR="${HOME}/Documents/洞窟物語/"
PLIST_DIR="${HOME}/Library/Preferences/"
PLIST_NAME="com.nakiwo.Doukutsu.plist"
backup()
{
@foooomio
foooomio / config.py
Last active June 26, 2019 17:26
keyhac config
import pyauto
from keyhac import *
def configure(keymap):
def is_not_cygwin(window):
return window.getProcessName() != "mintty.exe"
keymap_emacs = keymap.defineWindowKeymap(check_func=is_not_cygwin)
keymap_emacs["LC-a"] = "Home"
keymap_emacs["LC-e"] = "End"
val answers = Iterator.from(10, 1).filter(
Foo(_).test(isPalindrome)
)
println(answers.next)
def isPalindrome(base: String): Boolean =
base == base.reverse
case class Foo(n: Integer) {
@foooomio
foooomio / millionlive.tsv
Last active March 19, 2018 15:04
シアター組のpixivタグ数 (2018/3/19時点)
名前 タグ数 属性(グリマス) 属性(ミリシタ)
北沢志保 2144 Visual Fairy
七尾百合子 1723 Visual Princess
望月杏奈 1576 Vocal Angel
真壁瑞希 1345 Dance Angel
周防桃子 1297 Visual Fairy
箱崎星梨花 1287 Vocal Angel
最上静香 1186 Vocal Fairy
横山奈緒 1177 Dance Princess
春日未来 1160 Vocal Princess
#dashboard>.news>div>.create>.body>.Details>div>div>div:first-child>div:before {
content: '📖';
}
#dashboard>.news>div>.follow>.body>.Details>div>div>div:first-child>div:before {
content: '👤';
}
#dashboard>.news>div>.follow>div>div>div>div:first-child>div:before {
content: '👤';
@foooomio
foooomio / LTP_01 のリソースの記述を取得する.rq
Last active December 1, 2019 08:12
ピコピコプラネットのクエリ例
# Turtle 形式で出力させるのが見やすくておすすめです
BASE <https://mltd.pikopikopla.net/resource/>
DESCRIBE <LTP_01>
digraph G {
graph [rankdir = LR];
LTP_01 -> LTP_01_01 [label = "track"];
LTP_01 -> LTP_01_02 [label = "track"];
LTP_01 -> LTP_01_03 [label = "track"];
LTP_01_01 -> Thank_You [label = "recordingOf"];
LTP_01_02 -> Thank_You [label = "recordingOf"];
LTP_01_03 -> Thank_You [label = "recordingOf"];
LTP_01_01 [label = "1曲目", style = dashed];
time-ago::before {
content: attr(title);
font-size: 14px;
}
time-ago {
font-size: 0;
}
:is(.note, .f6) time-ago::before {
#!/usr/bin/env bash
set -euo pipefail
run_speedtest() {
speedtest -f json
}
to_slack_message() {
jq -c --argjson threshold "$1" '