Coder Social home page Coder Social logo

icodein / onelinerhub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onelinerhub/onelinerhub

0.0 1.0 0.0 5.04 MB

Lib with 800+ (and counting) minimalistic code pieces with clear explanation @ onelinerhub.com

Home Page: https://onelinerhub.com/

License: MIT License

onelinerhub's Introduction

oneliner:hub

Lib of micro code pieces, well explained and mostly single-line solutions @ onelinerhub.com.

oneliner:hub example

Help by contributing

Just create a pull request with new/updated codes. Feel free to add/update any tech code piece you find useful.

Help needed now:

Principles

  • 3 main principles for code pieces here are: simple, modern, minimal
  • Micro solutions are ment to solve specific issue in modern versions of technologies (browsers, compilers, databases, etc.)
  • Solution should be as short and simple as possible
  • Solution should be explained by components (variables, functions, operations, etc.)
  • Image illustrations are welcome

Code file micro-format

  • Each code file should be placed in it's main technology folder (e.g. "php", "bash", etc).
  • File should have short but understandable naming in underscore format (e.g. "redirect_header.md")
  • Extension is always ".md", so all the markdown works
  • File must include title ("# title") as the first line (technology title is automatically added in UI {title} with {technology} unless you specify it manually, like {title} in {technology})
  • File must include actual code snippet in the highlighted code block
  • File should also include code parts description, so it's well explained (example in template)
  • File can also include group definition to link similar solution (e.g. different date formats or string comparison methods)
  • You can upload PNG file with the same file name as the code file and it will automatically be rendered in UI
  • Example can be specified using ## Example header followed by 2 code blocks (input and output examples)
  • You can also markup default code piece to select (when reader ctrl+c, this pieace will automatically be selected instead of full code), wrapping it in |{|...|}| (like here, see how autoselect works)

Use this template for creating new code pieces.

FAQ

"What if I want to create new folder/technology in onelinerhub repo?"

You are welcome to do it with pull request as long as it is useful technology/solution for engineers

"What if I want to edit some published code?"

You are welcome to do it with pull request as long as it will make the code better (simple, modern, minimal)

"Can I post multi-line code (not a one-liner)?"

Yes, as long as the solution is targeted towards specific problem and is well explained

Latest updates

onelinerhub's People

Contributors

nonunicorn avatar mrcrypster avatar joshuahenriques avatar f4r4n avatar h-ssiqueira avatar ozanbaskan avatar kulbhushanchand avatar blazeryoo avatar pushpendersaini0 avatar shellroti avatar gabrieltheophilo avatar ahmad-ali14 avatar donno2048 avatar adierebel avatar trojan0x avatar askorupskyy avatar anvi98 avatar jishanshaikh4 avatar meerhamzadev avatar mdsscml avatar nedimcanulusoy avatar axmad386 avatar aldovc avatar xmagee avatar as786sarex avatar dvsu avatar fredrare avatar vineyrawat avatar makemake-kbo avatar pedrosusername avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.