This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# https://stackoverflow.com/questions/45441865/determine-aws-region-from-ip-address | |
from ipaddress import ip_network, ip_address | |
import requests | |
import sys | |
def find_aws_region(ip): | |
url = 'https://ip-ranges.amazonaws.com/ip-ranges.json' | |
ip_json = requests.get(url).json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
run_speedtest() { | |
speedtest -f json | |
} | |
to_slack_message() { | |
jq -c --argjson threshold "$1" ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time-ago::before { | |
content: attr(title); | |
font-size: 14px; | |
} | |
time-ago { | |
font-size: 0; | |
} | |
:is(.note, .f6) time-ago::before { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turtle 形式で出力させるのが見やすくておすすめです | |
BASE <https://mltd.pikopikopla.net/resource/> | |
DESCRIBE <LTP_01> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: '👤'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
名前 | タグ数 | 属性(グリマス) | 属性(ミリシタ) | |
---|---|---|---|---|
北沢志保 | 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
DOUKUTSU_DIR="${HOME}/Documents/洞窟物語/" | |
PLIST_DIR="${HOME}/Library/Preferences/" | |
PLIST_NAME="com.nakiwo.Doukutsu.plist" | |
backup() | |
{ |
NewerOlder