A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
#!/usr/bin/python | |
p = 0.5 | |
sample_size = [10 ** x for x in range(1,6)] | |
replicates = 10000 | |
biases = [] | |
for n in sample_size: | |
bias = np.empty(replicates) | |
for i in range(replicates): |
import os | |
import ipywidgets as widgets | |
class FileBrowser(object): | |
def __init__(self): | |
self.path = os.getcwd() | |
self._update_files() | |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
I hereby claim:
To claim this, I am signing this object:
conda create --name x python=3.5 anaconda | |
source activate x | |
conda config --add channels conda-forge | |
conda install jupyter_contrib_nbextensions -y # addon for jupyter | |
conda install bcolz -y # save pandas | |
conda install tqdm -y # progress bar | |
conda install altair -y # decarative | |
conda install -c conda-forge catboost shap |
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
#!/bin/bash | |
# Author: Sasha Nikiforov | |
# source of inspiration | |
# https://stackoverflow.com/questions/41293077/how-to-compile-tensorflow-with-sse4-2-and-avx-instructions | |
# check if VirtuelEnv activated | |
if [ -z "$VIRTUAL_ENV" ]; then | |
echo "VirtualEnv is not activated" |