Install docker on WSL: https://gist.github.com/dehsilvadeveloper/c3bdf0f4cdcc5c177e2fe9be671820c7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Helper Class for working with pandas DataFrames.""" | |
| import os | |
| import pandas as pd | |
| class DFHelper(pd.DataFrame): | |
| """Helper class for working with pandas DataFrames""" | |
| # pylint: disable=arguments-differ | |
| def to_csv( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Query Azure Devops with interactive authentication through rest API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: cuda | |
| channels: | |
| - defaults | |
| dependencies: | |
| - cudatoolkit | |
| - tensorflow-gpu | |
| - matplotlib | |
| prefix: /home/jfsix/anaconda3/envs/cuda |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| logHelper : Helps logging | |
| ''' | |
| import logging | |
| import datetime | |
| import os | |
| def init(file_name, mod_name=__name__, level=logging.DEBUG) -> logging.Logger: | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| from picamera import PiCamera | |
| import datetime | |
| import os | |
| def log(inner_fucntion): | |
| def wrapper(*args, **kwargs): | |
| print('Entering {} with arguments {}, {}'.format(inner_fucntion.__name__, *args, **kwargs)) | |
| res = inner_fucntion(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # import the necessary packages | |
| from tkinter import * | |
| from PIL import Image | |
| from PIL import ImageTk | |
| import tkinter.filedialog as tkFileDialog | |
| import cv2 | |
| import glob | |
| from shutil import copyfile | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xml.etree.ElementTree as ET | |
| import glob | |
| from PIL import Image | |
| import operator | |
| """ | |
| """ | |
| class labelHelper: | |
| def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( | |
| sleep 30 | |
| hdparm -B 127 -S 120 /dev/sda | |
| ) & |
NewerOlder