Skip to content

Instantly share code, notes, and snippets.

View jmatsu's full-sized avatar
🏠
Working from home

Jumpei Matsuda jmatsu

🏠
Working from home
View GitHub Profile
@jmatsu
jmatsu / script-template.sh
Created June 29, 2021 04:27 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@jmatsu
jmatsu / LintIssureRegistory.java
Created January 5, 2017 02:21 — forked from kgmyshin/LintIssureRegistory.java
RxJava2SubscribeOnErrorDetector
package com.kgmshin.lint;
import com.android.tools.lint.client.api.IssueRegistry;
import com.android.tools.lint.detector.api.Issue;
import java.util.Collections;
import java.util.List;
public class LintIssueRegistry extends IssueRegistry {
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by amyu- on 2015/04/19.
*/
public class GeneralViewGroup extends ViewGroup {
// ==UserScript==
// @name Titech Portal Auto Login
// @namespace http://d.hatena.ne.jp/eagletmt/
// @description 東工大ポータルに自動的にログインします
// @author eagletmt <eagletmt@gmail.com>
// @include https://portal.nap.gsic.titech.ac.jp/GetAccess/Login*
// @match https://portal.nap.gsic.titech.ac.jp/GetAccess/Login*
// @license MIT License
// ==/UserScript==