calendar

cal

cal is a cal(1) clone.

ncal (this “n” means Nihon/Nippon) is also available.

ncal requires date-holiday.

(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) 

calendrical

“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.

easter.ens

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 screenshot of easter-ens

gopt

gopt is a simple wrapper of getoptlong .

instrument protocol

"Just another Ruby hacker,"

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

'abcdefghijklmnopqrstuvwxyz'.
  tr('gqtkmevuxndyfohljsrwzciabp',
     'nyae  kcrRt,auorhh e stJub').
  display

(0..24).each{|i|$><<((278997462280352656884859620342234553147534102625031355069770>>i*8)%256).chr}

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

[8,16,20,29,78,65,2,14,26,12,12,28,71,114,12,13,12,82,72,21,17,4,10,2,95].
  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'+' '+
 'h'+'a'*1+'c'+'k'+'e'+'r'+',').display

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

race calendar

others