Skip to content

Instantly share code, notes, and snippets.

View prateekgargX's full-sized avatar
:electron:

Prateek Garg prateekgargX

:electron:
View GitHub Profile
import logging
import argparse
import os
parser = argparse.ArgumentParser(description='test logging')
parser.add_argument('--debug', action='store_true', help='log debug statements')
parser.add_argument('--log-dir', type=str, required=True, help='directory to store log')
parser.add_argument('--file', type=str, required=True, help='log file name')
args = parser.parse_args()
@prateekgargX
prateekgargX / standard_imports.py
Last active November 7, 2023 14:42
a file to paste into jupyter notebook everytime i start a new project. From UvA DL tutorials: https://uvadlc-notebooks.readthedocs.io/en/latest/index.html
## Standard libraries
import os
import json
import math
import numpy as np
## Imports for plotting
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib_inline
@prateekgargX
prateekgargX / sample.md
Last active December 18, 2021 22:53 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic