Skip to content

Instantly share code, notes, and snippets.

View inabajunmr's full-sized avatar
aesthetics

inaba jun inabajunmr

aesthetics
View GitHub Profile
@inabajunmr
inabajunmr / chatwork-webhook-request-validation-on-aws-lambda.js
Last active March 9, 2018 03:55
chatwork-webhook-request-validation-on-aws-lambda.js
exports.handler = function(event, context, callback) {
console.log('Received event:', JSON.stringify(event, null, 2));
// Retrieve request parameters from the Lambda function input:
var signature = event.headers['X-ChatWorkWebhookSignature'];
var body = event.body;
if (validate(signature, body)) {
// write operation for webhook
callback(null, {"statusCode": 200, "body": "Success"})
} else {
@inabajunmr
inabajunmr / Command goのモジュール周辺の翻訳.md
Created October 11, 2018 18:45
Command goのモジュール周辺の翻訳

Modules, module versions, and more

この文章は以下の翻訳です。 https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more

本文

モジュールは関連するGoパッケージの集合です。モジュールは各ソースコードとバージョンの単位です。

goコマンドは、他のモジュールの依存関係の記録や解決を含むモジュールの操作を直接サポートしています。モジュールはかつてのGOPATHベースのやり方に代って、ビルド時に使われるソースファイルを特定する方法となります。

@inabajunmr
inabajunmr / main.go
Created February 10, 2019 12:54
go standard input snippet
package main
import (
"bufio"
"os"
"strconv"
)
func main() {
sc := bufio.NewScanner(os.Stdin)
@inabajunmr
inabajunmr / GetDictionary.gs
Created September 21, 2019 06:22
Get word definition from oxford dictionaries API on Google spreadsheet.
// get content from dictionary
function fetch(word) {
if(word == ""){
return "";
}
var options = {
'headers' : {
'app_id': "xxx",
'app_key': "xxx"
}};
@inabajunmr
inabajunmr / main.go
Created October 20, 2019 14:41
ALDS1_4_B?
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
@inabajunmr
inabajunmr / main.go
Created November 2, 2019 13:28
ALDS1_5_D
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
@inabajunmr
inabajunmr / memo.md
Last active August 2, 2020 08:50
2020: Self-Sovereign Identity with Self-Issued OpenID Providerを見ながら書いたメモ

https://www.youtube.com/watch?v=b5aaiIaYRNw

2020: Self-Sovereign Identity with Self-Issued OpenID Providerを見ながら書いたメモ

なおIDの知識や英語力の問題でちゃんと正しく理解できている自信はないので以下の内容は部分的もしくは全体的に間違っている可能性がそれなりにある

Self-Sovereign Identityとは

  • 自分が関係する組織と独立して認識される
  • 管理主体が自分、という意味でいいと思う
@inabajunmr
inabajunmr / fold.js
Last active September 7, 2020 07:52
bookmark let for folding all file on GitHub diff
javascript:Array.from(document.getElementsByClassName("file")).forEach(e => {e.classList.remove("open"); e.classList.remove("Details--on");});
@inabajunmr
inabajunmr / Base64.java
Last active November 22, 2020 16:37
Java Base64
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Base64;
import java.util.List;
public class Main {
private final static String base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
public static void main(String[] args) {
@inabajunmr
inabajunmr / gist:85167e66343275ecb7534185f3c922e9
Last active April 26, 2022 01:03
Pairwise Testing in Real Worldの和訳風怪文章

Pairwise Testing in Real World

http://www.pairwise.org/docs/pnsqc2006/PNSQC%20140%20-%20Jacek%20Czerwonka%20-%20Pairwise%20Testing%20-%20BW.pdf

ABSTRACT

Pairwise testing has become an indispensable tool in a software tester’s toolbox. The technique has been known for almost twenty years [22] but it is the last five years that we have seen a tremendous increase in its popularity.

ペアワイズテスティングはソフトウェアテスターにとって欠かせないツールとなりました。この手法はここほぼ20年のうちによく知られるようになりましたが、特に最近の5年でものすごく人気になりました。