Skip to content

Instantly share code, notes, and snippets.

@burke
Created December 3, 2011 22:57
Show Gist options
  • Save burke/1428424 to your computer and use it in GitHub Desktop.
Save burke/1428424 to your computer and use it in GitHub Desktop.
# -*-coding: utf-8-*-
module Enumerable def &b;each &b;end end
,,,,,,,=10,{},->*{[]=1},->*{[]},->*{=[*]
[*]?&2>&12:==3},->,{=0;[->¢,{¢|==0||[¢+,+]&&+=1}];},
->{(-1..1).{|¢|(-1..1).{||[¢,]}}},->{.downto(-).{||(-..).{||
$><<([,]??X:?.)};puts}};=->{=({}.tap{||.{|(,),_|[->¢,{
¢|==0||[[+¢,+]]=[+¢,+]}]}})};[0,0];[1,0];[2,0];[2,1];[1,2]
loop{[];[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment