Skip to content

Instantly share code, notes, and snippets.

Avatar

Jun Morimoto mrmt

View GitHub Profile
@mrmt
mrmt / setlist.md
Last active Aug 29, 2015
setlist for GitHub & DeployGate Tokyo Meetup, 30 May 2014
View setlist.md

main

  • GBI (German Bold Italic) Tei Towa
  • Wuthering Heights The Puppini Sisters
  • Human Nature Sexy Synthesizer
  • Smoke On The Water Señor Coconut
  • Get It Right Arabology
  • Telefone Bossacucanova
  • Batucada Tei Towa
  • Breakn' A Sweat Skrillex
@mrmt
mrmt / wxr2mt
Last active Aug 29, 2015
WordpressからexportしたWXRをMT形式に変換
View wxr2mt
#!/usr/bin/perl
use XML::Simple;
use Date::Parse;
use strict;
use warnings;
use feature 'say';
binmode(STDOUT, ':utf8');
my $xml = new XML::Simple;
View gist:593017
--- nucleus/plugins/NP_ImpExp.php.org 2010-09-11 13:22:20.939423749 +0900
+++ nucleus/plugins/NP_ImpExp.php 2010-09-10 20:52:50.000000000 +0900
@@ -107,6 +107,29 @@
);
}
+ // mrmt
+ function unfold($source){
+ $in_pre = 0;
+ $buf = '';
View ExcelColConv.pl
#!/usr/bin/perl
# Excel列名変換問題で第2回社内プログラミングコンテストを開催してみた
# (前編) - ITは芸術だ
# http://d.hatena.ne.jp/JunichiIto/20111102/1320253815
#
# from 15:23
# step 1 15:51
# step 2 16:35
use strict;
View FizzBuzz.pl
#!/usr/bin/perl
use feature 'say';
use warnings;
use strict;
usage() unless scalar(@ARGV) == 1;
our $max_value = $ARGV[0];
usage() unless $max_value > 0;
for my $i (1 .. $max_value){
View gist:1339941
/*This makes the item header blue*/
.entry-title-link {
color:#2244BB !important;
}
a.entry-title-link {
color:#2244BB !important;
}
.entry-title {
color:#2244BB !important;
}
@mrmt
mrmt / tanaka.sh
Created Nov 19, 2011
$HOME/bin/tanaka
View tanaka.sh
#!/bin/sh
echo "   / ̄ ̄ ̄ ̄ ̄ミ"
echo "  /  ,――――-ミ"
echo " / / /   \ |"
echo " | / ,(・) (・)|"
echo "(6     つ 。|"
echo " |    ___  |  / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ "
echo " |    /__/ / < $*なんてねぇだろ! "
echo "/|      /\  \__________ "
@mrmt
mrmt / libkern.pl
Created Nov 21, 2011
libkern.pl from fml
View libkern.pl
#!/usr/bin/perl
#
# Copyright (C) 1993-2001 Ken'ichi Fukamachi
# All rights reserved.
# 1993-1996 fukachan@phys.titech.ac.jp
# 1996-2001 fukachan@sapporo.iij.ad.jp
#
# FML is free software; you can redistribute it and/or modify
# it under the terms of GNU General Public License.
# See the file COPYING for more details.
@mrmt
mrmt / gist:1480101
Created Dec 15, 2011
facebookから認証紐付けを外すとMixcloudからとどくフォローメール
View gist:1480101
From: Mixcloud <noreply@mixcloud.com>
Subject: How to reclaim your Mixcloud account.
To: XXXXXXXXXXXXXXXXXXXX
You're receiving this e-mail because you have de-authorized Mixcloud from
your Facebook account,
and we are sad to see you leave.
If you want to claim your Mixcloud account, please go to the following page
and choose a password,
@mrmt
mrmt / gist:1520448
Created Dec 26, 2011
convert wiki notation from wiliki to souceforge.jp
View gist:1520448
;; -*-emacs-lisp-*-
;; converting wiki notation from wiliki to souceforge.jp
(defun sf ()
"converting wiki notation from wiliki to souceforge.jp"
(interactive)
(save-excursion
;; heading
(goto-char (point-min))