ref: http://github.com/mame/doublehelix/Hello, world! プログラム。 require "doublehelix" AT A--T T---A G----C G----C G----C T---A G--C AT GC T--A G---C T----A A----T T----A G---C C--G AT CG A--T A---T C----G A----T G----C G---C G--C CG GC A--... 続きを読む
Once activated, we'll place the following badge in your repository's detail box: 続きを読む
Piet is Turing-complete posted by Yusuke Endoh label: brainfuck, piet, ruby I proved Turing-completeness of the programming language Piet by defining a translation from brainfuck to Piet. translation approach 1. Correspond brainfuck's tape an... 続きを読む
esoteric language 好きなら一度は見たことのあるはずの画像プログラミング言語 Piet をまじめに勉強してみました。どんな言語か簡単に説明すると、 画像がプログラムになるスタックを 1 個持つ (スタックマシン) befunge みたいに左上から右方向に実行が進む ... 続きを読む
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84... 続きを読む
時計の絵をかいたら時計になるなんて、Ruby はとっても宣言的な言語ですね! eval s=%w(0;y="" >3*i- =48).g sub(/. /){s>$ &?y*3: z.slic e!(0,3 )}}*yこんな風に実行します。ruby 1.8 でも 1.9 でも動くと思う。 $ ruby quineclock.rb | tee q.rb $ ruby q.rb... 続きを読む
There is nothing more frustrating for a web developer than spending hours at a time fixing a bug that should just work. Often I’ll get stuck in a programming state that feels like I have absolutely no idea what I’m doing, as if the language... 続きを読む
l33t (An Evil Programming Language By Stephen McGreal and Alex Mole) With thanks to Kamal Advani and Kuisma Salonen for helping in ironing out some of the obscure wordings in the spec... Introduction "l33t sp34k" is the international internet... 続きを読む