Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Lua

(5.1, bottled)

Date:04/19/09
Author:Peter Cawley
URL:http://corsix.org/content/obfuscated-lua
Comments:0
Info:http://www.lua.org/
Score: (3.00 in 49 votes)
    L=           {}           for          k,v
    in          next          ,_G          ._G
    do          L[#k          ]=v          end
   L[10        ](([[p        =prin        t;for
  'q=99,      1,-1'do'      gg'q>1'      th{n'p(
 q.."'Bs'    {f'!:::'{n    'th{'<114    ,'"..q.."
'Bs'of'!::  [.")gg'q>2't  h{n's=(q-1)  .."'Bs'{f'[
!::'{n'th{  '<!+$."{lse'  s="1'B'{f'$  !::'{n'th{'
<onx."{nd;  elsegg'q==1'  then'p"1'B'  {f'x!::'{n'
th{'wall,'  1'B'of'[!::.  "s="no'mor{  '!::''{n'th
e'<'!4!"en  d;p("Take'{n  {'down,'pas  s'it'around
,'"..s)p"-  "{nd]]):gsub  ("["..[==[$  4[]==]..[[x
]].."]",""  ):gsub([[B]]  ,"bottle"):  gsub("''?",
" "):gsub(  "!:+","beer"  ):gsub("gg"  ,"if"):rep(
3-2):gsub(  "<..","wall"  ):gsub("{",  function(_)
B=((B)or(3  ))+1;return(  "eooe"):sub  (B%4+1,(B+1
+2+9)%4+(#  L[1]-13),(B*  2)%7)end))(  L[#L]or...)

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
original versionPhilippe Lhoste04/20/051
Examples of metatables in lua 5.1Peter Cawley06/07/070
version 5.xchill07/10/052

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: