Skip to content

Instantly share code, notes, and snippets.

Avatar

Jun Morimoto mrmt

View GitHub Profile
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 / omnioutliner-opml2html
Created Nov 19, 2011
convert opml (generated via OmniOutliner) to html
View omnioutliner-opml2html
#!/usr/bin/perl -w
#
# omnioutliner-opml2html
# morimoto@xantia.citroen.org
# $Id: omnioutliner-opml2html,v 1.1 2004/02/04 12:39:38 morimoto Exp $
# Based on opml2html.pl, shown below;
#
# opml2html.pl, (c) Jeremy Zawodny -- http://jerermy.zawodny.com/blog/
#
# Updated by Michael Radwin (http://www.radwin.org/michael/blog/)
@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))
@mrmt
mrmt / gist:1523114
Created Dec 27, 2011
/etc/postfix/reject_ns
View gist:1523114
ns1.is-name.net REJECT match blacklist NS
ns2.is-name.net REJECT match blacklist NS
ns1.kim-name.net REJECT match blacklist NS
ns2.kim-name.net REJECT match blacklist NS
ns1.dehfs.com REJECT match blacklist NS
ns2.dehfs.com REJECT match blacklist NS
ns1.dsfad.com REJECT match blacklist NS
ns2.dsfad.com REJECT match blacklist NS
ns1.zets-1.com REJECT match blacklist NS
ns2.zets-1.com REJECT match blacklist NS