A collection of one-line programs in various languages, performing various tasks. "One-Line" is for those languages that support it; the aim is to create a runnable file the shortest a language can allow (i.e. no using ; instead of a new line and "minifying" it to be one line).
Have some fun with coding every once in a while, and see how you can abuse the semantics of a language.
Anyone can contribute to this repo by opening a PR, your contribution will be open-source on Github. Don't know what to make? Try coding something that logs "Hello, world!" to the console!
Celebrate Hacktoberfest together with a diverse community of developers from around the world!
PRs not marked as spam will be counted towards 4 PRs in the month of October for your free Hacktoberfest T-Shirt!
- Fork this repository
- Click the Fork button in the top right of this page, then click on your profile image.
- Clone to desktop
git clone https://github.com/your-username/one-line-wonders.git
- Checkout a branch
git checkout -b feature/branch-name
- Make yourself known
-
Add your bio to the CONTRIBUTORS.md file
Name: [YOUR NAME](Github Link)
Place: Where are you from?
Coding Experience: Which programming languages do you know? What projects have you/do you worked on?
Email: name@example.com
- Add your one-line program's files of the form [username]_[filename], i.e.,
wzhouwzhou_approximating_e.cc
. If a folder for your code's language does not exist, feel free to create it. - Commit and push
git add .; git commit -m "commit message"; git push origin branch-name;
- Create a new Pull Request from your fork
- Click on the New Pull Request button located near the top of your repository.
- Wait for your PR to be reviewed!
Star this repository if you had fun ⭐🎉