Skip to content

Instantly share code, notes, and snippets.

View shahrokh-bahtooei's full-sized avatar
👋

Shahrokh Bahtooei shahrokh-bahtooei

👋
View GitHub Profile
@eigenfoo
eigenfoo / ipynb_toc.py
Created June 24, 2019 08:37
Print a Markdown table of contents for a Jupyter notebook.
#!/bin/python
import argparse
import re
import json
import string
parser = argparse.ArgumentParser(
description="Print a Markdown table of contents for a Jupyter notebook."
)
@delbetu
delbetu / function_structure.md
Last active February 11, 2024 17:28
Uncle Bob best practices function structure

Intro

  • function signature should be small- the fewer the arguments the better
  • what types should be passed into those arguments
  • why switch and if cost such harm in the software structure ? -> how to get rid of them ?
  • why assign operator is consider harmful ?
  • Many software problems can be avoided by constraining state changing operators, and side effects.
  • How to structure our functions making error handling clean and maintainable fashion ?

Function arguments

@lukas-h
lukas-h / license-badges.md
Last active May 1, 2024 10:20
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)