English translation of TINAMI API Request Form and TINAMI API Guideline. 🇯🇵→🇬🇧
Please look at this image: https://goo.gl/photos/6oryJbLTNj1YVoKj9.
English translation of TINAMI API Request Form and TINAMI API Guideline. 🇯🇵→🇬🇧
Please look at this image: https://goo.gl/photos/6oryJbLTNj1YVoKj9.
// 動作確認: Google Chrome 73.0.3683.27(Official Build)beta (64 ビット) | |
var authors = [...$('[itemprop="author"]')].map(a => a.textContent.trim()).join(' / ').replace(/\s+/g, ' '); var title = $('.book_title').text().trim(); var pubdate = $('[itemprop="datePublished"]').text().replace(/[()]/g, '').trim(); var publisher = $('[itemprop="publisher"]').text().trim(); var isbn = [...$('[href*="isbn"]')][0].href.split('=')[1]; var text = [authors, title, publisher, pubdate, isbn].join('\t'); alert(text); console.log(text) |
#!/bin/sh | |
# LISENCE: GNU GPL v3 | |
wget http://standards-oui.ieee.org/oui/oui.txt -O /tmp/oui.txt | |
grep -E '^[-0-9A-F]{8}' /tmp/oui.txt | unexpand -a | python -c 'while True: s = input(); print(s.split()[0].replace("-", ":"), " ".join(s.split()[2:]), sep="\t")' | sort > oui-format.txt |
#!/usr/bin/env python3 | |
import numpy as np | |
# Assume that P = N * N. | |
N = 4 | |
A = np.arange(0, 2 * N * N, 2).reshape(N, N) | |
B = np.arange(1, 2 * N * N, 2).reshape(N, N) | |
C_gt = A.dot(B) |
// ==UserScript== | |
// @name Add autoplay feature and keybindings (Space: Pause & Play / F: Toggle Fullscreen) | |
// @namespace http://github.com/shuuji3 | |
// @version 0.1 | |
// @description Add autoplay feature and keybindings (Space: Pause & Play / F: Toggle Fullscreen) | |
// @author You | |
// @match https://ch.ani.tv/episodes/* | |
// @grant none | |
// ==/UserScript== |
/* ==UserStyle== | |
@name 筑波大学 大学院「並行システム」講義ページ | |
@namespace github.com/openstyles/stylus | |
@version 1.1.0 | |
@description Refines website styles | |
@author TAKAHASHI Shuuji <shuuji3@gmail.com> | |
==/UserStyle== */ | |
@-moz-document url-prefix("http://www.cs.tsukuba.ac.jp/~yas/cs/"), | |
url-prefix("https://www.coins.tsukuba.ac.jp/~yas/cs/") { | |
body { |
I hereby claim:
To claim this, I am signing this object:
function gen-ssh-config-for-multipass --description "Generate a SSH config for multipass." | |
echo 'Include ~/.ssh/config | |
Host mp-* | |
User multipass | |
' | |
set -l vms (multipass ls --format csv | grep Running) | |
for vm in $vms | |
set name (echo $vm | awk -F , '{ print $1 }') | |
set ip (echo $vm | awk -F , '{ print $3 }') |
#!/usr/bin/env bash | |
alias k=kubectl | |
alias kg='kubectl get' | |
alias kga='kubectl get all' | |
alias kgn='kubectl get nodes' | |
alias kgp='kubectl get pods' | |
alias kgd='kubectl get deploy' | |
alias kd='kubectl describe' | |
alias krunpod='kubectl run --restart=Never --dry-run -o yaml' |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
) |