Skip to content

Instantly share code, notes, and snippets.

@yhara
yhara / analyze.rb
Created May 10, 2012 06:24
Visualization of "ズッ友" relationship, a Japanese twitter meme http://route477.net/d/?date=20120510#p01
# coding: utf-8
#
require 'pp'
tomo = {}
File.open(ARGV[0]) do |f|
while line = f.gets
next if line =~ /\A"RT "/
if line =~ /でも…+([^…]*)と([^…]*)ゎ…+(ズッ友|ズッ友)/
tomo[$1] = $2
end
@dylanvee
dylanvee / jruby_mina_sshd_example.rb
Created October 3, 2012 05:58
JRuby + Apache MINA SSHD
# First, download a binary distribution from
# http://mina.apache.org/sshd/sshd-070.html
# and copy lib/*.jar to your cwd
# Load all the jar files
require 'java'
Dir['./*.jar'].each {|jar| require jar }
# Import some Java classes
java_import java.util.EnumSet
// ==UserScript==
// @name hateb_avoid_cussion
// @namespace http://sorah.jp/
// @description avoid cussion
// @include http://b.hatena.ne.jp/entry/*
// ==/UserScript==
var i = null
i = setInterval(function() {
if(document.getElementById("highlighted-bookmark")) {
@mala
mala / postMessageLogger.user.js
Created December 9, 2013 14:51
便利user.js
window.addEventListener("message", function(e){ console.log(e) });
@mala
mala / safari-like-cookie-policy-is-too-bad.md
Last active July 11, 2019 05:36
Firefox 22のCookieに関するポリシー変更(予定)についての意見書
@sonots
sonots / fluentd_hacking_guide.md
Last active August 30, 2021 05:57
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide

目次

30分しかないため斜線部分は今回省く

  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ
@unak
unak / history.txt
Last active November 29, 2021 01:40
The History of Ruby
* Only the releases of the stable versions are listed in principle. The releases of the unstable versions especially considered to be important are indicated as "not stable."
* The branches used as the source of each releases are specified, and the branching timing of them are also shown. BTW, before subversionizing of the repository, the term called "trunk" was not used, but this list uses it in order to avoid confusion.
* In order to show a historical backdrop, big conferences (RubyKaigi, RubyConf and Euruko) are also listed. About the venues of such conferences, general English notations are adopted, in my hope.
* ruby_1_8_7 branch was recut from v1_8_7 tag after the 1.8.7 release because of an accident.
* 1.2.1 release was canceled once, and the 2nd release called "repack" was performed. Although there were other examples similar to this, since the re-releases were performed during the same day, it does not write clearly in particular.
* Since 1.0 was released with the date in large quantities, the mi