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 os | |
import math | |
import time | |
import sys | |
from multiprocessing import Process | |
from threading import Thread | |
from multiprocessing.pool import ThreadPool as TPool | |
from multiprocessing import Pool as MPool | |
from loguru import 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
# use black extension for each cell execution automatically | |
# msut have nb_black and black installed | |
# just run this magic in the first line of the code | |
%load_ext nb_balck | |
# show all output from the running cell | |
# available options : 'all', 'last', 'last_expr', 'none', 'last_expr_or_assign' | |
# default: 'last_expr' | |
from IPython.core.interactiveshell import InteractiveShell |
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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |