Skip to content

Instantly share code, notes, and snippets.

View mrmt's full-sized avatar

MORIMOTO Jun mrmt

View GitHub Profile
@mrmt
mrmt / Joplin_Shortcut_ja.md
Created February 3, 2022 01:53
macOS版Joplinアプリショートカット

操作

ショートカット 機能
Cmd-n 新規ノート
Cmd-Delete ノート削除
Cmd-t 新規タスク
Cmd-p なんでも検索
Shift-Cmd-s ノートブックのリストに移動
Shift-Cmd-l ノートのリストに移動
Shift-Cmd-b ノート本体に移動
diff -urN lib-/wiliki/format.scm lib/wiliki/format.scm
--- lib-/wiliki/format.scm 2004-09-09 00:42:14.000000000 +0900
+++ lib/wiliki/format.scm 2004-09-09 00:33:01.000000000 +0900
@@ -226,14 +226,16 @@
(path (match 4))
(openp (match 1))
(name (match 8))
+ (wlki (wiliki))
+ (trampoline #`",(cgi-name-of wlki)?c=j&url=")
(url (if server #`",|scheme|:,|server|,|path|" path)))
@mrmt
mrmt / gist:1464ac88fe4dd0b61fef52872a727899
Last active June 17, 2020 02:00 — forked from t-yamamoto-mercury-inc/gist:b58969dcc58bb13ee4b7e2c1fc316501
Googleドライブのパスをクリップボードにコピーするブックマークレット
javascript:(function(){
var pre = 'Googleドライブの「';
var xpath = '//*[@guidedhelpid="folder_path"]';
document.getElementsByXPath = function(expression, parentElement) {
var r = [];
var x = document.evaluate(expression, parentElement || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0, l = x.snapshotLength; i < l; i++) {
r.push(x.snapshotItem(i));
} return r;
@mrmt
mrmt / insert-japanese-day-of-the-week.el
Last active March 25, 2020 09:06
insert japanese day of the week
;; Copyright 2019 Jun Morimoto
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
participant "誤認逮捕された専門学校生" as Senmon
participant "犯罪中学生" as Criminal
participant "女子高生ら2人" as JK_2
participant "チケット販売サイト" as TicketShop
participant "落札者" as Rakusatsu
Senmon -> Criminal : チケット8万円で売ります
Criminal -> Senmon : 買います
Senmon -> Criminal : 「誤認逮捕された専門学校生」の口座を教える
Criminal -> JK_2 : チケット4万円で売ります
@mrmt
mrmt / slack2html.php
Last active April 8, 2016 01:44 — forked from levelsio/gist:122907e95956602e5c09
slack2html
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@@ -397,11 +421,15 @@
$itemVar['body'] = preg_replace_callback($delim_expr, array(&$this, '_convertDelim'), $itemVar['body']);
$itemVar['more'] = preg_replace_callback($delim_expr, array(&$this, '_convertDelim'), $itemVar['more']);
if( $stripbr ){
$itemVar['body'] = preg_replace("/([\r\n])/","$1",$itemVar['body']);
$itemVar['more'] = preg_replace("/([\r\n])/","$1",$itemVar['more']);
}
+ // mrmt
--- /usr/share/wordpress/wp-admin/import/mt.php.org 2010-09-11 13:28:52.000000000 +0900
+++ /usr/share/wordpress/wp-admin/import/mt.php 2010-09-10 21:51:19.000000000 +0900
@@ -220,6 +220,9 @@
if ( is_wp_error( $post_id ) )
return $post_id;
+ // mrmt
+ add_post_meta($post_id, 'nucleus_itemid', $post->nucleus_itemid, 0);
+
// Add categories.
+++ nucleus/plugins/impexp/template/np_impexp/entry_japanese-utf8.txt.org 2010-09-11 13:14:09.265971760 +0900
--- nucleus/plugins/impexp/template/np_impexp/entry_japanese-utf8.txt 2010-09-05 10:22:30.000000000 +0900
@@ -1,6 +1,5 @@
AUTHOR: {{author}}
TITLE: {{title}}
+ ITEMID: {{itemid}}
STATUS: {{status}}
ALLOW COMMENTS: {{allow_comments}}
CONVERT BREAKS: {{convert_breaks}}
--- nucleus/plugins/NP_ImpExp.php.org 2010-09-11 13:22:20.939423749 +0900
# -*- coding: utf-8 -*-
# ruby timer.rb 12:00 1 2 3 4 5 6 7 8 9 10 15 30 1m 2m 3m 4m 5m 10m 15m 20m 30m 45m 1h 1h30m 2h
require 'time'
require 'timers'
def usage
STDERR.puts "Usage: ruby timer end_time timing [timing..]"
STDERR.puts " example: ruby timer 12:00 1 2 3 5m 30m 1h"
exit