Skip to content

Instantly share code, notes, and snippets.

Avatar

Kakutani Shintaro kakutani

View GitHub Profile
View power_assert.rb
# power_assert.rb
#
# Copyright (C) 2014 Kazuki Tsujimoto, All rights reserved.
# License: BSDL
#
# $ ruby power_assert.rb
# "0".class == "3".to_i.times.map {|i| i + 1 }.class
# | | | | |
# | | | | Array
# | | | [1, 2, 3]
View この人のHotlinks、読んでみたい!リスト.md
@marocchino
marocchino / rt.md
Created Sep 17, 2012
rubykaigi2012 timetable
View rt.md
@unak
unak / history.txt
Last active Nov 29, 2021
The History of Ruby
View history.txt
* 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
@tmaeda
tmaeda / graph.rb
Created May 24, 2012
sprk2012 pull req graph
View graph.rb
# sprk2012 pull req graph
require 'date'
require 'time'
require 'octokit'
client = Octokit::Client.new({:auto_traversal => true})
pulls = client.pulls("sprk2012/sprk2012-cfp")
days = (Date.new(2012,4,26)..Date.new(2012,5,25)).to_a.map{|d| [d.to_s, 0]}
View markdown2inao.pl
#!/usr/bin/env perl
use strict;
use warnings;
use Pod::Usage;
use Text::Markdown 'markdown';
use HTML::TreeBuilder;
use List::Util 'max';
use Encode;
@netmute
netmute / README.md
Last active Jun 19, 2021
Game of Life
View README.md

Game of Life

An implementation of Conway's Game of Life in 140 characters of Ruby.

Author

Created by Simon Ernst (@sier).

View gist:1133245
# vim:set ft=zsh:
unlimit
limit core 0
limit -s
umask 022
HISTFILE=${HOME}/.zhistory
HISTSIZE=100000
SAVEHIST=100000
@yosisa
yosisa / cmigemo.rb
Created Jul 30, 2011
formula for cmigemo
View cmigemo.rb
require 'formula'
class Cmigemo < Formula
url 'http://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip'
homepage 'http://www.kaoriya.net/software/cmigemo'
sha1 '25e279c56d3a8f1e82cbfb3526d1b38742d1d66c'
depends_on 'nkf'
def patches