Skip to content

Instantly share code, notes, and snippets.

View mzp's full-sized avatar

Hiro Mizuno mzp

View GitHub Profile
@mzp
mzp / ninja.md
Last active December 19, 2015 05:59
Functional Ninja #3

Functional Ninja #3 (OCaml編 その2)

Functional Ninjaとは

ニンジャー

事前準備

@mzp
mzp / ninja.md
Last active December 17, 2015 23:58

Functional Ninja #2 (OCaml編)

Functional Ninjaとは

ニンジャー

事前準備

@mzp
mzp / Gemfile
Last active December 15, 2015 03:49
yapra-plugin-fastladder example
source 'https://rubygems.org'
# Specify your gem's dependencies in fl-crawler-yapra.gemspec
gem 'yapra-plugin-filter', :github => 'mzp/yapra-plugin-filter'
gem 'yapra-plugin-github', :github => 'mzp/yapra-plugin-github'
gem 'yapra-plugin-fastladder', :github => 'mzp/yapra-plugin-fastladder'
@mzp
mzp / README
Last active December 12, 2015 03:29
Usage
======
Run `analyze.rb` to genarte statics data:
ruby analyze.rb example.csv > data.js
And open `dot.html`.
@mzp
mzp / vvakame.md
Created November 16, 2012 07:11
わかめモナ化.md
#!/bin/sh
(cd libfoo && make)
(cd libbar && make)
gcc -o loader test_dyld.c
./loader
@mzp
mzp / in_typeperf.rb
Created September 3, 2012 22:42
typeperf plugin for Fluentd(libuv ver)
module Fluent
class TypeperfInput < Input
Plugin.register_input('typeperf', self)
def initialize
super
require 'csv'
@hostname = `hostname`.chomp!
@mzp
mzp / README.mkdn
Created August 2, 2012 15:06
JRuby on WindowsでFluentdを動かす方法

JRuby on Windowsでfluentdを動かす方法

前提

  • JRuby 1.6.7.2(1.7.0 preview1だと動かない?)
  • MinGW

また上記二つにパスを通してください。 ボクは以下のような run.bat を作っています。

set PATH=C:\jruby-1.6.7.2\bin;C:\MinGW\bin;C:\MinGW\msys\1.0\bin;%PATH%

ほげ
@mzp
mzp / gist:2900461
Created June 9, 2012 10:30
smlsharp configure option
./configure CC='gcc -m32' CXX='g++ -m32' LD='ld -arch i386' --enable-native=x86-darwin --prefix=/opt/smlsharp --enable-fast-build