Good morning. It's just gone twenty to twelve. (Japan Standard Time)


cal is a cal(1) clone.

ncal is also available.

 (cal -c it 10 1582)     (cal -c gb 9 1752)      (cal -mt 4 2000)

    October 1582           September 1752            April 2000
 S  M Tu  W Th  F  S     S  M Tu  W Th  F  S     M     3 10 17 24
    1  2  3  4 15 16           1  2 14 15 16    Tu     4 11 18 25
17 18 19 20 21 22 23    17 18 19 20 21 22 23     W     5 12 19 26
24 25 26 27 28 29 30    24 25 26 27 28 29 30    Th     6 13 20 27
31                                               F     7 14 21 28
                                                 S  1  8 15 22 29
                                                 S  2  9 16 23 30

The original cal appeared at Unix early age as cal(6) which is written by Ken Thompson, I think. Unix V1 cal(6)

cal.rb [3.8K] ncal.rb [4.7K]


"Calendrical" module is for calendrical calculations.

Most of this was translated by me from “Calendrical Calculations” and “Calendrical Calculations, II: Three Historical Calendars”.

In addition to the above, I also wrote code for a few calendars.

This module supports the following calendars:

Gregorian (New Style), Week Date ("ISO"), Julian (Old Style), Islamic (Moslem), Hebrew (Jewish), Mayan, French Revolutionary, Old Hindu, Achelis', Coptic, Ethiopian, Jalali, Bahá'í, Indian National, Revised Bengali, Nanakshahi and Kyūreki

NOTE: The correlation of Mayan Long Count is GMT (584,283). Jalali is not complete yet. Indian National, Revised Bengali and Nanakshahi are now experimental. This module represents Japanese traditional calendar ("Kyūreki") in Gregorian year. This module handles Julian day number and Modified Julian daynumber as "chronological" ones.

There are Ruby and Python version available.

rubyist tar.gz [101K] rubyist gem [ 92K] pythonian tar.gz [ 92K]


This simple script creates iCalendar file from's race calendar.

cwrc.rb [1.7K] [See Race Calendar 2015 via fruux]


date/holiday provides methods about determination of holidays.

date-holiday-0.0.2.tar.gz [ 18K] date-holiday-0.0.2.gem [ 13K]


This is an ensemble file of NI Reaktor 4, which determines Easter sunday of the given year. Reaktor 5 and Reaktor 5 Player (Free) also can open this.

screenshot of easter-ens [ 12K]


gopt is a simple wrapper of getoptlong.

gopt-0.0.2.tar.gz [ 11K] gopt-0.0.2.gem [5.5K]

"Just another Ruby hacker,"

An ancient game - "Just another Ruby hacker," (for ruby 1.8)

     'nyae  kcrRt,auorhh e stJub').


0.step(72,3){|i|$><<'J huhesartc  kRaeunrbo,yt'[i%25..i%25]}

  each_with_index{|x,i| $><<(x^'Begin landing your troops'[i]).chr}

$><<[[[['J'],[[[['u']]],[['s']]]]],[['t',[[[[' ']],'a']]]],['n'],[[['o']],[
[['t']],'h']],[[['e'],['r']]],[[[[' ']],['R']]],[[[['u']]],['b']],[[[['y'],
[' ']]]],[[['h',[[[[['a']]]],[['c']]],'k']]],[[['e']]],[[[['r']]],[[',']]]]

'Jluisptf lainpoftlhieprf lRiupbfyl ihpafclkiepr,'.gsub(/[flip]/,'flap'*0).display

('b'*0+'J'+'u'+'y'*0+'s'+'t'+' '+'v'*0+
 'a'+'n'+'o'+'p'*0+'t'+'h'+'e'+'r'+' '+
 'c'*0+'R'+'i'*0+'u'+'j'*0+'b'+'y'+' '+

25.times{|i|$><<('BqSt ajmthe2 BubY HA#iep('[i]|'Heq4 `.OthER Rq`9 hackEr,'[i]).chr}


This is an "OpenSound Control" module. This is an implementation of "OpenSound Control" (OSC) that is a protocol of application-level for especially musical interest.

osc-0.1.5.tar.gz [ 31K] osc-0.1.5.gem [ 24K]


This is a calendar module. The original core code from SDN calendar library which is written by Scott E. Lee.

This module supports the following calendars:

Gregorian, Julian, French Republican, Jewish

rubyist tar.gz [ 26K] rubyist gem [ 21K] pythonian tar.gz [ 18K] the original source [ 26K]


This is a “Standard MIDI File” module. This module handles encoding and decoding about "Standard MIDI File" (SMF).

smf-0.15.15.tar.gz [ 54K] smf-0.15.15.gem [ 48K]


This simple script creates iCalendar file from Union Cycliste Internationale (UCI) published .xls file. Actually, this script handles .csv file which converted with format converter such as ssconvert(1). UCI also published iCalendar files. But they are junks.

ucirc.rb [1.2K] [See Road 2015 via fruux]


date2-4.0.19.tar.gz [ 47K] date2-4.0.19.gem [ 41K] date4-0.1.30.tar.gz [ 66K] date4-0.1.30.gem [ 59K] dvipc-1.1.1.tar.gz [ 48K] gtkcal.rb [ 10K] isbn-1.1.tar.gz [7.6K] luna.rb [4.2K] nqt.rb [1.0K] nucomp-0.2.2.tar.gz [ 19K] nurat-0.2.2.tar.gz [ 19K] nuby-1.86.004.tar.gz [4.4M] nutime-0.0.4.tar.gz [ 23K] nutime-0.0.4.gem [ 17K] once-2.4.tar.gz [ 10K] once-2.4.gem [3.5K] pluto-1.5.9.tar.gz [315K] rar.rar [3.9K] sspbm-2.1.tar.gz [9.3K] wc.rb [676 ]


Tadayoshi Funaba 1996-2015
last modified: 2015-05-06T17:58:23+09:00