Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
@shigeya
shigeya / gist:6badb2ec4f7d5bb898c5914c60c7869d
Created May 1, 2024 04:21
物書堂さんへのアプリについての要望
初期版からのユーザです。大変重宝しております。辞書のバリエーション、特に英英のバリエーションが多いのが助かります。
さて、本日は、前からお願いしたいと思っていた、アプリについての要望を二点お知らせしたいと思います。
1. なんらかの検索を行ったあとに、他のアプリに行って、辞書アプリに戻るとき、検索文字列の入力部にフォーカスが無い状況です。そのため、(x) をクリックするなどの操作をマウスでしない限り次の検索を始められません。Cmd-Tabで戻ってすぐに検索したい時などに非常に不自由なので ESCキーなど何らかのキーで、検索結果を消して入力ボックスにフォーカスが移るようになると大変使いやすくなりありがたいと思います。特に、文書を書いている時にありがたいので、是非お願いしたく。
なお,今、TAB一度たたいてフォーカスを入力部に移してBackspace押せば希望の操作はできると気づきましたが、ワンストロークでできるとありがたく。
2. 仕事柄、英英時点と英和辞典を平行して使いたく、串刺し検索してほしいのですが、「英和・和英」と「英英辞典」で区切られているため、大変使いにくいのです。同時に検索できるようにあると大変ありがたいです。
@shigeya
shigeya / gist:43e650460b92bc4b167cad7f487f755a
Last active December 20, 2021 05:22
Certificate Chain for Vaccine Certificate Issuer for Japan (Smart Healthcard format)
# to fetch use this: https://gist.github.com/shigeya/6a9288286da274d4c25a1e4a584df5f5
# issuer
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 17745651297222326810 (0xf64537d596e2fa1a)
Signature Algorithm: ecdsa-with-SHA384
Issuer: CN=vc.vrs.digital.go.jp CA
Validity
@shigeya
shigeya / JWKS-DECODE.sh
Last active June 23, 2022 08:16
JWKS decoder for Vaccine Certificate JWKS
#!/bin/sh
#
# Following two commands required
# jq -- https://stedolan.github.io/jq/ # or brew install jq
# base64 -- https://www.fourmilab.ch/webtools/base64/ # or brew install base64
#
# This code stored as public gist at:
# https://gist.github.com/shigeya/6a9288286da274d4c25a1e4a584df5f5
curl -s -O https://vc.vrs.digital.go.jp/issuer/.well-known/jwks.json
PASS suites/did-identifier/did-identifier.spec.js
PASS suites/did-url-dereferencing/did-url-dereferencing.spec.js
FAIL suites/did-consumption/did-consumption.spec.js
● 6.x Consumption - did:unisot - @unisot/unisot-did-resolverer - UNISOT AS › IMPLEMENTATION ::@unisot/unisot-did-resolverer:: › 6.3.2 JSON-LD Consumption › did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7 › 6.3.2 JSON-LD Consumption - The DID document and any DID document data structures expressed by a JSON-LD representation MUST be deserialized into the data model according to the JSON representation consumption rules as defined in § 6.2 JSON.
expect(received).toEqual(expected) // deep equality
- Expected - 26
+ Received + 13
This file has been truncated, but you can view the full file.
FAIL packages/did-core-test-server/suites/did-identifier/did-identifier.spec.js
● suites/did-identifier › IMPLEMENTATION ::DID Test Suite:: › 3.x Identifier - did:example - DID Test Suite - DID Working Group › 3.1 DID Syntax › did:example:123 › 3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ABNF Rules.
TypeError: expect(...).toBeValidDid is not a function
7 | it('3.1 DID Syntax - All DIDs MUST conform to the DID Syntax ' +
8 | 'ABNF Rules.', async () => {
> 9 | expect(didExample).toBeValidDid();
| ^
10 | });
@shigeya
shigeya / vscode-launch-for-did-test-suite-debug.json
Last active May 16, 2021 03:04
launch.json for did-test-suites debug
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome with Live Server Instance",
"request": "launch",
"type": "pwa-chrome",
@shigeya
shigeya / soup-diet.md
Last active August 7, 2021 04:59
スープダイエット手順

スープダイエット

ソース: http://www.honeycoffee.com/seven%20days%20diet.htm

脂肪燃焼スープ - 材料

材料

  • 玉葱大 3個
  • ピーマン 1個 (パプリカで代用可能)
  • セロリ 太いの 1本 (ほうれん草で代用可能)
{
"name": "webpack-demo",
"version": "1.0.0",
"description": "",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
@shigeya
shigeya / amazon-calc.js
Created April 22, 2018 07:38 — forked from l-rutong/amazon-calc.js
Amazon購入履歴のCSVエクスポート (2017 年バージョン)
// Amazon購入履歴のCSVエクスポート
//
// 使い方:
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽)
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト
// 4. エンターで実行
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う)
// 5. しばらく待つと、コンソールに合計金額が表示され、CSVが保存される
//
Making all in src
make[1]: Entering directory '/home/shigeya/src/LongTermBlockchain/src'
make[2]: Entering directory '/home/shigeya/src/LongTermBlockchain/src'
CXX script/libbitcoinconsensus_la-interpreter.lo
../libtool: line 1761: warning: setlocale: LC_CTYPE: cannot change locale (ja_JP.UTF-8)
../libtool: line 1761: warning: setlocale: LC_CTYPE: cannot change locale (ja_JP.UTF-8)
CXX script/libbitcoinconsensus_la-script.lo
../libtool: line 1761: warning: setlocale: LC_CTYPE: cannot change locale (ja_JP.UTF-8)
../libtool: line 1761: warning: setlocale: LC_CTYPE: cannot change locale (ja_JP.UTF-8)
CXX script/libbitcoinconsensus_la-script_error.lo