Skip to content

Instantly share code, notes, and snippets.

Issei Naruta mirakui

Block or report user

Report or block mirakui

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
@mirakui
mirakui / csv_counter.md
Last active Aug 29, 2015
Comparing standard CSV library in go and ruby
View csv_counter.md
View link_checker.rb
View imap_fetcher.rb
require 'rubygems'
require 'net/imap'
require 'kconv'
require 'pit'
require 'logger'
class ImapFetcher
def initialize(pit_name)
@pit = Pit.get(
View mod2yml.py
import sys
import re
import yaml
if len(sys.argv) != 2:
print 'Usage: python %s <mod_name>' % sys.argv[0]
quit()
mod_name = sys.argv[1]
mod = __import__(mod_name)
@mirakui
mirakui / auto_growlnotify.sh
Created May 11, 2010
Pops up a growl notification when a command spends over 5 seconds
View auto_growlnotify.sh
# source: http://d.hatena.ne.jp/umezo/20100508/1273332857
local COMMAND=""
local COMMAND_TIME=""
function precmd() {
if [ "$COMMAND_TIME" -ne "0" ] ; then
local d=`date +%s`
d=`expr $d - $COMMAND_TIME`
if [ "$d" -ge "5" ] ; then
COMMAND="$COMMAND "
@mirakui
mirakui / imlib2_magick_benchmark2.rb
Created Jul 24, 2010
Benchmark Imlib2 vs ImageMagick
View imlib2_magick_benchmark2.rb
require "rubygems"
require "benchmark"
require "imlib2"
N = (ARGV.shift || 1).to_i
def bench(title)
puts "\nBenchmark: #{title} (#{N} times)"
Benchmark.bm(7, ">total:", ">avg:") do |bm|
View dmm_util.user.js
// ==UserScript==
// @name DMM Util
// @description DMM Utility
// @match http://www.dmm.co.jp/*
// ==/UserScript==
(function() {
function replaceImg(img) {
var src = img.src
img.onload = function(){
img.width = img.naturalWidth;
View mirakui_chrome_keyconfig.json
{
"name": "Chrome Keyconfig",
"version": "1.13.1",
"normal_actions": {
"j": {
"name": "scroll down",
"args": []
},
"k": {
"name": "scroll up",
@mirakui
mirakui / mirakui.xml
Created Dec 13, 2010
Custom Theme Font for MacOffice 2011 ~/Library/Application\ Support/Microsoft/Office/ユーザー\ テンプレート/個人用テーマ/Theme\ Fonts/mirakui.xml
View mirakui.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<a:fontScheme name="mirakui" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:majorFont>
<a:latin typeface="Stone Sans ITC TT"/>
<a:ea typeface=""/>
<a:cs typeface=""/>
<a:font script="Jpan" typeface="小塚ゴシック Pr6N H"/>
<a:font script="Hang" typeface="맑은 고딕"/>
<a:font script="Hans" typeface="宋体"/>
<a:font script="Hant" typeface="新細明體"/>
@mirakui
mirakui / .vimrc
Created Nov 22, 2011
マジックコメントでfiletypeを変更できない件
View .vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
You can’t perform that action at this time.