Skip to content

Instantly share code, notes, and snippets.

@fson
Created July 17, 2012 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fson/3132295 to your computer and use it in GitHub Desktop.
Save fson/3132295 to your computer and use it in GitHub Desktop.
Obfuscated CoffeeScript
# factorial
$ = (_) ->
__ = _
--__ && _ = _ * $ __
_
# each
$$ = (_, __) ->
___ = _[+[]]
___? && (![] != __ ___) && $$ _[+!![]..], __
# reduce
$$$ = (_, __, ___) ->
$$ _, (_) ->
___ = __ _, ___
___
@fson
Copy link
Author

fson commented Jul 17, 2012

Rules:

  1. Valid CoffeeScript
  2. Only special characters
  3. Have fun!

@hertzg
Copy link

hertzg commented Feb 10, 2015

This will be horrible to debug. 😆
Imagine this error message:

Uncaught ReferenceError: _________ is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment