Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. $_=$$/$$;@_=->_{_==''?_:[*?`..?{]['. !#% & , :;<= >@_ `'=~/#{_[$.]}/]+@_[_[$_..-$_]]};_=->&_{_}[&:"#{@_['@%<#']}"];_[_[_[_['',@_['!: @@']],@_[' <!%@_=>@']][-$_-$_],@_['!=<@_']+?_+@_['&%_'],(''<<(_=$_+$_)**_**(_+$_)/(_+$_)-$_)+@_[',;%']],@_['<%`']]
  2.  
  3.  
  4. $_ = $$ / $$ # PID / PID, or 1
  5.  
  6. # Translating a string of gibberish into alphabetical strings
  7. @_ = -> _ {
  8. _ == '' ? # If _ is blank string, return _
  9. _ :
  10. [
  11. *?`..?{ # Letters a to z with ` and { on either end
  12. ][
  13. '. !#% & , :;<= >@_ `' =~ /#{_[$.]}/ #Match against the first character, getting the index
  14. ] +
  15. @_[_[$_..-$_]] # Recall function with the tail, index 1 to -1
  16. }
  17.  
  18. # This looks like underscore is being aliased to a proc of send
  19. _ = -> &_ {
  20. _
  21. }[&:"#{@_['@%<#']}"] # symbol to proc of ["s", "e", "n", "d"] or send
  22.  
  23. _[ # send Proc
  24. _[ # send Proc
  25. _[ # send Proc
  26. _[ # send Proc
  27. '', @_['!: @@'] # class, so main.send('', class) or class of String
  28. ],
  29. @_[' <!%@_=>@'] # ancestors, so String#ancestors
  30. ][-$_-$_], # index -2, or Kernel, so Kernel#send
  31.  
  32. @_['!=<@_'] + # 'const' +
  33. ?_ + # '_'
  34. @_['&%_'], ( # 'get'
  35. '' <<
  36. (_ = $_ + $_) ** # 2 ^
  37. _ ** # 2 (4) ^
  38. (_ + $_) / # 3 /
  39. (_ + $_) - # 3 -
  40. $_ # 1
  41. # 2 ** 2 ** 3 / 3 - 1 == 84 == ASCII T
  42. ) +
  43. @_[',;%'] # 'ime', so 'Time'
  44. ], @_['<%`'] # new
  45. ] # So all this to say Kernel#send('Time', 'new')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement