Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
@shigeya
shigeya / emacs.rb
Last active August 29, 2015 14:23 — forked from ksato9700/emacs.rb
require "formula"
class Emacs < Formula
homepage "https://www.gnu.org/software/emacs/"
stable do
url "http://ftpmirror.gnu.org/emacs/emacs-24.5.tar.xz"
mirror "https://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.xz"
sha256 "dd47d71dd2a526cf6b47cb49af793ec2e26af69a0951cc40e43ae290eacfc34e"
@shigeya
shigeya / sources.list
Created August 1, 2015 01:56
Debian 7.8 /etc/apt/sources.list at JAIST
#
# deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 CD Binary-1 20150110-14:43]/ wheezy main
deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 CD Binary-1 20150110-14:43]/ wheezy main
deb http://ftp.jaist.ac.jp/debian/ wheezy main
deb-src http://ftp.jaist.ac.jp/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
@shigeya
shigeya / amazon-calc.js
Created November 13, 2017 22:04 — forked from koyopro/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
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
@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が保存される
//
{
"name": "webpack-demo",
"version": "1.0.0",
"description": "",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
@shigeya
shigeya / soup-diet.md
Last active August 7, 2021 04:59
スープダイエット手順

スープダイエット

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

脂肪燃焼スープ - 材料

材料

  • 玉葱大 3個
  • ピーマン 1個 (パプリカで代用可能)
  • セロリ 太いの 1本 (ほうれん草で代用可能)
@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",
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 | });
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