https://github.com/dzucconi/negative
Encode Ruby programs as whitespace
https://github.com/dzucconi/negative
Last synced: 5 months ago
JSON representation
Encode Ruby programs as whitespace
- Host: GitHub
- URL: https://github.com/dzucconi/negative
- Owner: dzucconi
- Created: 2013-07-29T18:22:08.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:44:26.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T09:37:57.027Z (7 months ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```bash
Usage: ./negative [OPTION]...Encode .rb files as whitespace
-f, --filename [FILENAME] input filename
-o, --output [FILENAME] ouput filename
-i, --[no-]input use -f as an input to eval
-z, --[no-]reader include reader
-x, --[no-]executable output is executable
``````ruby
eval("
".split(/\n/).map(&:size).pack("C*"))
# => and to have seen nothing, or almost nothing
# except the face of a girl from Buenos Aires
# a face that does not want you to remember it.
```