Skip to content

Instantly share code, notes, and snippets.


Mitsunori Komatsu komamitsu

View GitHub Profile
module type Show = sig
type t
val show : t -> string
module ShowInt : Show with type t = int = struct
type t = int
let show = Int.to_string
danidiaz / netrw.txt
Created Oct 7, 2016
Vim's netrw commands.
View netrw.txt
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
eddieh /
Last active Mar 26, 2021
libevent vs libuv

libevent vs libuv

Comparing libevent and libuv. My upfront biased: I want to like libevent. However, I want to objectively compare the two and make an informed decision.

What versions are we comparing?

  • libevent 2.0.22 (Stable) [2014-01-05]
  • libuv 1.8.0 (Stable) [2015-12-15]
udzura /
Last active May 10, 2019
やわらか Consul

やわらか Consul



事前に、ワークショップ用のサンプルプロジェクトをチェックアウトし、VMの作成だけしておきましょう。 --no-provision でお願いします!


Presto connector development 1

One of the very good design decisions Presto designers made is that it's loosely coupled from storages.

Presto is a distributed SQL executor engine, and doesn't manager schema or metadata of tables by itself. It doesn't manage read data from storage by itself. Those businesses are done by plugins called Connector. Presto comes with Hive connector built-in, which connects Hive's metastore and HDFS to Presto.

We can connect any storages into Presto by writing connector plugins.

Plugin Architecture

repeatedly /
Last active Sep 23, 2019


Objective Cの実装使ってるとある問題にぶちあたった.なので,文字列をちゃんとバイナリ(Raw)と分けるべき,という提案

(*) 俺は熟読したわけではないので,中身が気になる人はちゃんと本スレを読みましょう


jnatkins / pom.xml
Created Aug 29, 2012
A sample POM for setting up a basic Maven project for CDH application development
View pom.xml
<project xmlns="" xmlns:xsi=""
<!-- Replace the group ID with your group ID -->
<!-- Replace the artifact ID with the name of your project -->
spullara /
Created Dec 25, 2011
Invokedynamic all in one example
package indy;
import java.lang.invoke.CallSite;
import java.lang.invoke.ConstantCallSite;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.reflect.Constructor;
import org.objectweb.asm.ClassWriter;
darktable / MiniJSON.cs
Created Nov 30, 2011
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
View MiniJSON.cs
* Copyright (c) 2013 Calvin Rien
* Based on the JSON parser by Patrick van Bergen
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
* Permission is hereby granted, free of charge, to any person obtaining