Home > groovy > Merry Christmas and a Happy New Year!

Merry Christmas and a Happy New Year!

I wanted to thank all readers for their feedback and support. Flattr this Writing this blog makes a lot of fun and I am looking forward to future posts.

I wanted to make you a Groovy christmas present – just throw it in your preferred Groovy console and execute it 🙂

String.metaClass.or = { other ->
    return "$delegate$other"
}

String.metaClass.div = { other ->
    return " " * other + delegate
}

[(','/11 | 'i' | '!' * 6 | ';' | ',' ),
('.'/6  | ',' | ';' | 'i' | '!' * 5 | '\'' | '`' | ',' | 'u' * 2 | ',' | 'o' | '$' * 2 | 'bo.'),
('!' * 7 / 4 | '\'.e' | '$' * 14 | '.' ),
('!' * 7 / 3 | ' ' | '$' * 17 | 'P' ),
('!' * 7 / 3 | ',`' | '$' * 8 | 'P""`,,`"' ),
('i' / 2 | '!' * 8 | ',' |'$' * 4 | '",oed' | '$' * 6 ),
('!' * 9 / 1 | '\'P".,e' | '$' * 8 | '"\'?' ),
('`' / 1 | '!' * 8 | ' z$\'J' | '$' * 5 | '\'.,$bd$b,'),
('`' / 2 | '!' * 6 | 'f;$\'d' | '$' * 13 | 'P\',c,.' ),
('!' * 6 / 3 | ' $B,"?' | '$' * 5 | 'P\',uggg' | '$' * 5 | 'P"' ),
('!' * 6 / 3 | '.' | '$' * 4 | 'be."\'zd' | '$' * 3 | 'P".,uooe' | '$' * 2 | 'r' ),
('`' / 3 | '!' * 3 | '\',' | '$' * 9 | 'c,"",ud' | '$' * 9 | 'L' ),
('!' * 2 / 4 | ' ' | '$' * 29),
('!\'j' / 4 | '$' * 29 ),
('d@@,?' / 2 | '$' * 28 | 'P'),
('?@@f:' / 2 | '$' * 27 | '\''),
('""' / 3 | ' `' | '$' * 26 | 'F'),
('`3' / 7 | '$' * 22 | 'F' ),
('`"' / 10 | '$' * 4 | 'P?' | '$' * 7 | '"`' ),
('`""' / 19), "Merry Christmas and a Happy New Year!"].each { println it }  
Advertisements
Categories: groovy
  1. December 23, 2010 at 1:14 pm

    I GIVE UP!!!

    What in the world is this a picture of?

    • December 23, 2010 at 4:53 pm

      Ooooh … It’s a cute santa … I’m so touched!

  1. December 23, 2010 at 1:34 pm
  2. December 23, 2010 at 2:15 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: