Skip to content

Instantly share code, notes, and snippets.

View legnoh's full-sized avatar
🏠
WFH

Ryoma Kai legnoh

🏠
WFH
View GitHub Profile
@legnoh
legnoh / gist:c2223b6417c8debbf0e3a5cb8c6026a7
Last active May 17, 2020 07:22
はてなブログをmdxに変換する時に使った雑なスクリプト群
#!/bin/bash
while read row; do
key=`echo ${row} | cut -d , -f 1`
title=`echo ${row} | cut -d , -f 5`
fulldatenum=`echo ${row} | cut -d , -f 4`
yearnum=`echo ${row} | cut -d , -f 6`
weeknum=`echo ${row} | cut -d , -f 7 | xargs printf %02d`
hatenaurl=`echo ${row} | cut -d , -f 2`
@legnoh
legnoh / hotel.md
Last active August 12, 2018 10:35
那須での宿泊先の候補情報です。
@legnoh
legnoh / user.js
Created May 6, 2017 05:39
Y!SHP Descliber
// ==UserScript==
// @name Y!SHP Descliber
// @namespace http://www.legnoh.jp
// @version 0.1
// @description disable checkbox to desclibe Y!SHP mail
// @author legnoh
// @match https://order.shopping.yahoo.co.jp/cgi-bin/review-order*
// @grant none
// ==/UserScript==
@legnoh
legnoh / 週報テンプレート.mddown
Last active August 20, 2016 03:35
週報テンプレート.md
やった
----
- hoge
課題
----
- hoge
0::/"=== 1. 基本設定 ======================"
0::/position = "shita"
0::/default_time = 4.0
0::/scroll_time = 0.0
0::/lines_max = 5
0::/"=== 2. フォントの設定 ================"
0::/font_size = 20
0::/font_color = 0xFF0000
0::/font_bold = false
0::/font_fuchi = true
0.00::/"=== 1. 基本設定 ======================"
0.00::/position = "shita"
0.00::/default_time = 4.0
0.00::/scroll_time = 0.0
0.00::/lines_max = 5
0.00::/"=== 2. フォントの設定 ================"
0.00::/font_size = 16
0.00::/font_color = 0xFFFFFF
0.00::/font_bold = false
0.00::/font_fuchi = true
@legnoh
legnoh / file0.php
Last active September 21, 2015 04:09
GoogleIMEの辞書ファイル(*.txt)をMacの日本語IM用辞書ファイル(*.plist)に変換する ref: http://qiita.com/legnoh/items/517cc218f3d62ea409e0
<?php
// convert.phpとか適当に名前つけて保存してくだしあ
// ファイル名を引数から読込んで定義
$option = getopt('i:o:');
$filename_in = empty( $option['i'] ) ? "./名称未設定.txt" : $option['i'] ;
$filename_out = empty( $option['o'] ) ? "./IME辞書01.plist" : $option['o'] ;
// 存在確認して入力ファイルを開く
@legnoh
legnoh / gist:6c866adfa0854215c9c9
Created July 5, 2014 18:17
[AnimeTick][Unwatched] convert to 3column
div#tickets {
width: 999px!important;
}
div#tickets div.ticket_relative {
width: 329px;
float:left;
}
div#tickets div.ticket {
@legnoh
legnoh / config
Created February 8, 2014 19:40
rbenv,CentOS6.5で作るredmine環境 ref: http://qiita.com/legnoh/items/835ad5d1fa06a333348e
Host legnoh
User root
HostName legnoh.jp
Port 10022
IdentityFile ~/.ssh/id_rsa
ForwardAgent yes
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};