Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/briandowns/super-hacker
SuperHacker is the ultimate utility to make you look like a hacker.
https://github.com/briandowns/super-hacker
c cli golang hacker haskell java javascript python scala terminal
Last synced: about 11 hours ago
JSON representation
SuperHacker is the ultimate utility to make you look like a hacker.
- Host: GitHub
- URL: https://github.com/briandowns/super-hacker
- Owner: briandowns
- License: bsd-3-clause
- Created: 2019-06-12T21:35:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-01T22:54:00.000Z (almost 3 years ago)
- Last Synced: 2024-06-19T01:57:46.396Z (5 months ago)
- Topics: c, cli, golang, hacker, haskell, java, javascript, python, scala, terminal
- Language: Go
- Homepage:
- Size: 7.35 MB
- Stars: 49
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# super-hacker
`super-hacker` is a CLI application that will output beautifully written code to your terminal allowing you to astound your friends and family. By default, the output buffer is set to 3 but is overridable. To quit, press `esc` or `ctrl-c`.
![](super-hacker.gif)
## Examples
super-hacker with no flags runs with Go as the default language and an output buffer of 3 bytes.
```sh
$ super-hacker
```super-hacker with the `l` flag runs it with the given language. See the "Supported Languages" section below.
```sh
$ super-hacker -l python
```super-hacker with the `b` flag runs it with the output buffer set to the given value.
```sh
$ super-hacker -b 16
```## Supported Languages
- Go
- C
- Python
- Scala
- Haskell
- Java
- Javascript
- Rockstar
- Ruby
- CoffeeScript## Installation
Binary releases can be obtained from the `releases` section of the repository. To build, issue `make`. This will build a binary for your platform. The binary will be put into a `bin` directory in the repository. After either installation, you'll want to copy the binary into your path.
## Adding More Languages and Templates
To add a new language to `super-hacker`, create a directory named after the language you're adding in the templates directory. In there, add a file to hold the code. In that file, create a Go `const` that is exported from that new language package and paste in the code. Make sure to include license headers if available. If a license is needed, link to it in a comment in the file. It's preferred to include a link to the source of the code if it's not yours.
In `template.go`, add a new slice and reference the newly created constant. Next, add an entry in the switch statement in the `Random(lang string)` function.
## Contributing
Please feel free to open a PR!
## License
SuperHacker source code is available under the BSD 3 clause [License](/LICENSE).
## Contact
[@bdowns328](http://twitter.com/bdowns328)