Skip to content

Instantly share code, notes, and snippets.

🍣

Masayuki Higashino mh61503891

🍣
Block or report user

Report or block mh61503891

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View remove_lgtms_on_qiita.user.js
// ==UserScript==
// @name Remove LGTMs on Qiita
// @namespace Violentmonkey Scripts
// @match https://qiita.com/*
// @grant GM_getValue
// @grant GM_setValue
// @run-at document-idle
// @version 2.0
// @description NOTE: This script only works on the page displayed circle-button of LGTM. Please open the entry page on a full-width size display.
// ==/UserScript==
@mh61503891
mh61503891 / copy_title_and_uri_as_scrapboxs_format_to_clipboard.user.js
Last active Mar 12, 2020
Copy Title and URI as Scrapbox's format to Clipboard - */*
View copy_title_and_uri_as_scrapboxs_format_to_clipboard.user.js
// ==UserScript==
// @name Copy Title and URI as Scrapbox's format to Clipboard
// @namespace https://msyk.hgsn.info/
// @noframes true
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_setClipboard
// @version 1.1
// @author Masayuki Higashino
// ==/UserScript==
@mh61503891
mh61503891 / search_mails_by_labels_in_inbox.user.js
Last active Mar 12, 2020
Search mails by labels in Inbox - mail.google.com
View search_mails_by_labels_in_inbox.user.js
// ==UserScript==
// @name Search mails by labels in Inbox - mail.google.com
// @namespace https://msyk.hgsn.info/
// @match https://mail.google.com/mail/u/*
// @grant GM_registerMenuCommand
// @grant GM_getValue
// @version 1.0
// @author Masayuki Higashino
// ==/UserScript==
@mh61503891
mh61503891 / search-mails-by-multiple-labels-in-inbox.js
Created Mar 11, 2020
Bookmarklet for Web UI of Gmail: Search mails by multiple labels in Inbox
View search-mails-by-multiple-labels-in-inbox.js
javascript: (
function() {
const label_names = [
'your_label',
];
const uri = label_names_to_search_uri(label_names);
console.log(uri);
document.location.href = uri;
function label_names_to_search_uri(label_names) {
let base_uri = document.location.href.split('/').slice(0, 6).join('/');
@mh61503891
mh61503891 / get-message-by-id-via-imap-from-gmail.rb
Last active Mar 9, 2020
A ruby script to get a message by Message-Id via IMAP from Gmail
View get-message-by-id-via-imap-from-gmail.rb
# # get-message-by-id-via-imap-from-gmail.rb
#
# ## Usage
#
# 1. Put the decryption key in a file
#
# ```console
# $ bundle install sekrets
# $ echo $your_decryption_key > .sekrets.key
# ```
@mh61503891
mh61503891 / expand-textarea-in-campus-square.js
Last active Mar 9, 2020
CampusSquareの授業計画詳細情報のテキストエリアがrows=2 cols=21で狭過ぎて辛い時に押すブックマークレット
View expand-textarea-in-campus-square.js
javascript:(function(){let tsurai_frame = document.getElementById('main-frame-if'); let textareas = tsurai_frame.contentWindow.document.getElementsByTagName('textarea'); Array.prototype.slice.call(textareas).forEach((t)=>{t.rows=20; t.cols=40;}); tsurai_frame.style.height = 10000 + 'px';})();
View tottori-curry.md
graph TD;
    type-yakuzen((薬膳));
    type-karaage((からあげ));
    type-yakuzen-->木の香り;
    type-yakuzen-->薬膳カレーSPOON;
    type-karaage-->薬膳カレーSPOON;
@mh61503891
mh61503891 / HK2SingletonInjectionExtension.java
Created Jul 27, 2019
An extension of JUnit 5 to inject objects using HK2.
View HK2SingletonInjectionExtension.java
import org.glassfish.hk2.api.DynamicConfiguration;
import org.glassfish.hk2.api.DynamicConfigurationService;
import org.glassfish.hk2.api.ServiceLocator;
import org.glassfish.hk2.utilities.BuilderHelper;
import org.glassfish.hk2.utilities.ServiceLocatorUtilities;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.extension.AfterAllCallback;
import org.junit.jupiter.api.extension.BeforeAllCallback;
import org.junit.jupiter.api.extension.Extension;
import org.junit.jupiter.api.extension.ExtensionContext;
You can’t perform that action at this time.