Skip to content
OneLineWondersCode | An actively maintained collection of "one-line" programs in various languages, performing various tasks | 234/250 One-Line Programs Milestone!
C Python JavaScript C++ Java CoffeeScript Other
Branch: master
Clone or download
Pull request Compare This branch is 153 commits behind wzhouwzhou:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
_assemble
bash
brainfuck/hello
c
clisp/fibonacci
clojure/hello
coffeescript
cplusplus
csharp
go
groovy
haskell
honorary-one-line-wonders
java
javascript
nodejs
ocaml
pascal/hello
perl
php
powershell
python
r
ruby
scala
scheme/fibonacci
swift/anagram
typescript/hello
vim
.gitignore
.travis.yml
CONTRIBUTING.md
CONTRIBUTORS.md
LICENSE
README.md
_config.yml
package-lock.json
package.json

README.md

One Line Wonders

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).

Why?

Have some fun with coding every once in a while, and see how you can abuse the semantics of a language.

Contributing

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!

Hacktoberfest 2019

Celebrate Hacktoberfest together with a diverse community of developers from around the world!

PRs marked as spam will not be counted towards 5 PRs in the month of October for your free Hacktoberfest T-Shirt!

Let's Get Started

  1. Fork this repository
  • Click the Fork button in the top right of this page, then click on your profile image.
  1. Clone to desktop git clone https://github.com/your-username/one-line-wonders.git
  2. Checkout a branch git checkout -b feature/branch-name
  3. 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

  1. 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.
  2. Commit and push git add .; git commit -m "commit message"; git push origin branch-name;
  3. Create a new Pull Request from your fork
  • Click on the New Pull Request button located near the top of your repository.
  1. Wait for your PR to be reviewed!

Star this repository if you had fun ⭐️🎉

You can’t perform that action at this time.