Skip to content

abedaton/oneliners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Oneliners

📁 This repository contains Oneliners in any programming languages.

GitHub contributors

Important Notice:

The code we want should not be trivial and must be usable in a useful way. For example, you can create a calculator that can be imported and used. Do not add hello world codes. This project does not accept codes where only newlines or spaces were remove. It also does not accept codes where a simple character was added to prevent going to a new line. For example:

import random; random.randint(0, 10)

is not the correct way in one line, but:

__import__("random").randint(0, 10)

is !

About

This repository contains codes that are written in a single line.

Purpose

The purpose of this repository is to give a you some challenge, when I was a student, I loved writting stuff in one line and make it absolutely horrible to read. Hopefully, I am not alone !

Contributing

For Contributing norms and guidelines, go to CONTRIBUTING.MD

Adding Your Code:

Here are the steps: 1: Develop something in the programming language of your choice for any platform in less than #100LinesOfCode 2: Fork this repository 3: Clone this repository

$ git clone "https://www.github.com/{Username}/100LinesOfCode.git"

where username is your GitHub account username.

  1. Create a branch where you can do your local work. Never work on master branch as we do not allow master commits except by admins.
$ git branch {branchname}
$ git checkout branchname
  1. Do your work and stage your changes.
$ git add <filename>
  1. Commit you changes with a commit message containing your name, file(s) worked upon, changes added.
$ git commit -m "Name| files| Changes"
  1. Push changes to your forked repository
$ git push -u origin branchname
Synchronize forked repository with Upstream repository
  1. Create upstream as our repository
$ git remote add upstream "https://github.com/josharsh/100LinesOfCode"
  1. Fetch upstream changes in local machine
$ git fetch upstream
  1. Switch to master branch
$ git checkout master
  1. Merge changes in local machine
$ git merge upstream/master
  1. Push changes to your forked GitHub repository
$ git push -f origin master

Structure of Your Code:

The root directory of your developed application must contain

  • A README.md describing your project, idea and Implementation
  • Source code for your app
  • An explanation of how to run your code

Note: Please Add Author's name in Readme.md of application.

About

A list of one liner program that works

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages