Skip to content

Instantly share code, notes, and snippets.

View YatinAdityaT's full-sized avatar
🙃
Learning...

Sabito YatinAdityaT

🙃
Learning...
View GitHub Profile
@YatinAdityaT
YatinAdityaT / multiprocessing.py
Created July 21, 2020 02:03 — forked from thorsummoner/multiprocessing.py
python multiprocessing example
#!/usr/bin/env python3
""" Example multiprocess based python file
"""
import multiprocessing
import argparse
import itertools
ARGP = argparse.ArgumentParser(
@YatinAdityaT
YatinAdityaT / socp
Last active May 13, 2021 08:01 — forked from jforberg/socp
Stack Overflow copy pasta
<USEFUL LINKS>
MSE FAQ https://meta.stackexchange.com/questions/7931/faq-for-stack-exchange-sites
http://idownvotedbecau.se/
MSE answer for common terms used: https://meta.stackexchange.com/questions/40353/stack-exchange-glossary-dictionary-of-commonly-used-terms
Canonical answer for python files with same names as import files: https://stackoverflow.com/a/36250354/11573842
@YatinAdityaT
YatinAdityaT / draw_neural_net.py
Created July 30, 2019 14:08 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
'''
Draw a neural network cartoon using matplotilb.
:usage:
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])