Skip to content

Instantly share code, notes, and snippets.

View watagashi's full-sized avatar
🏠
Working from home, except for the weekend.

WADA Takashi watagashi

🏠
Working from home, except for the weekend.
View GitHub Profile
@watagashi
watagashi / ep2-1.xxd
Last active April 4, 2022 15:55
Extra-Terrestrial Boys & Girls
00000000: 4a6f 686e 2044 6f65 206d 6164 6520 7468 John Doe made th
00000010: 6973 2070 3270 916a 3431 6c5b 7233 346b is p2p.j41l[r34k
00000020: 2037 3030 ad2e 2077 3320 7730 7235 6831 700.. w3 w0r5h1
00000030: 7020 2234 3722 2077 686f 2068 3320 7730 p "47" who h3 w0
00000040: 7235 6831 7020 6173 2033 3537 3462 6c31 r5h1p as 3574bl1
00000050: 3568 3364 2037 6833 2070 3270 2037 3363 5h3d 7h3 p2p 73c
00000060: 6820 3191 2034 6476 613e 6365 6420 6d65 h 1. 4dva>ced me
00000070: 7468 6f64 2c20 616e 6420 7765 2063 3372 thod, and we c3r
00000080: 3734 316e 2037 6d34 3720 6833 2f35 6833 741n 7m47 h3/5h3
00000090: 2031 3520 6eaf b788 5420 6e34 6b34 6d30 15 n...T n4k4m0
@watagashi
watagashi / gist:ca6f324b833b5e139fa948a110a9e112
Created March 28, 2022 13:00
From Episode 2 of "Extra-Terrestrial Boys & Girls" for xxd
00000000: 4a6f 686e 2044 6f65 206d 6164 6520 7468 John Doe made th
00000010: 6973 2070 3270 916a 3431 6c5b 7233 346b is p2p.j41l[r34k
00000020: 2037 3030 ad2e 2077 3320 7730 7235 6831 700.. w3 w0r5h1
00000030: 7020 2234 3722 2077 686f 2068 3320 7730 p "47" who h3 w0
00000040: 7235 6831 7020 6173 2033 3537 3462 6c31 r5h1p as 3574bl1
00000050: 3568 3364 2037 6833 2070 3270 2037 3363 5h3d 7h3 p2p 73c
00000060: 6820 3191 2034 6476 613e 6365 6420 6d65 h 1. 4dva>ced me
00000070: 7468 6f64 2c20 616e 6420 7765 2063 3372 thod, and we c3r
00000080: 3734 316e 2037 6d34 3720 6833 2f35 6833 741n 7m47 h3/5h3
00000090: 2031 3520 6eaf b788 5420 6e34 6b34 6d30 15 n...T n4k4m0
registerPlugin({
newMessageElement: function (elem) {
var removeBr = function (st) {
var br;
for (;;) {
br = st.getElementsByTagName('br')[0];
if (!br) return;
try {
st.replaceChild(document.createTextNode(' \r'), br);
} catch (e) {
// vim:ts=2:sw=2:et
if (window.URL) {
registerPlugin({
newMessageElement: function (elem) {
var keys = [
'fbclid',
'utm_source',
'utm_medium',
'utm_campaign',
'utm_term',
#!/bin/zsh
for t (L geo zipcode office.zipcode jinmei) curl -Lo $(dirname $0)/SKK-JISYO.$t http://openlab.ring.gr.jp/skk/skk/dic/SKK-JISYO.$t

Practice Test の結果を保存

  1. Practice Test を Submit した後の結果ページが表示されたらブラウザの Developer Tools を開く。
  2. Developer Tools の Elements で iframe 要素を探し、その中の html 要素の outerHTML をクリップボードにコピーする。
  3. テキストエディタで新規の HTML ファイルを開き、前項でコピーした outerHTML を貼り付ける。
  4. Developer Tools で lmscoreui.min.css というファイルを探し、その内容をクリップボードにコピーする。
  5. テキストエディタの HTML から style 要素 (先頭ので良い) を探し、その名の先頭に前項の CSS を貼り付ける (挿入する)。
  6. テキストエディタで HTML ファイルとして保存し、同ファイルをブラウザで開く。
  7. 正誤のスタイルが反映され、印刷等が可能な状態で Practice Test の結果がブラウザに表示される。
const ramboxOriginalTitle = document.title;
function ramboxUpdateTitle() {
document.title = `${
document.querySelectorAll('#reply.new, #direct.new').length > 0
? '(\u2022) '
: ''
}${ramboxOriginalTitle}`;
}
registerPlugin({
newMessageElement: ramboxUpdateTitle,
@watagashi
watagashi / .babelrc
Last active September 23, 2018 07:43
{
"presets": ["@babel/env"]
}
@watagashi
watagashi / .textlintrc
Last active July 13, 2018 10:09
remark-lint settings
{
"filters": {},
"rules": {
"preset-japanese": true,
"no-todo": true
}
}
diff --git a/ale_linters/markdown/remark_lint.vim b/ale_linters/markdown/remark_lint.vim
index 98dd0d7..c7fd0ab 100644
--- a/ale_linters/markdown/remark_lint.vim
+++ b/ale_linters/markdown/remark_lint.vim
@@ -1,34 +1,11 @@
" Author rhysd https://rhysd.github.io/, Dirk Roorda (dirkroorda), Adrián González Rus (@adrigzr)
" Description: remark-lint for Markdown files
-function! ale_linters#markdown#remark_lint#Handle(buffer, lines) abort
- " matches: ' 1:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint'