This file contains 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
#!/usr/bin/env python | |
__author__ = "github.com/ruxi" | |
__license__ = "MIT" | |
import requests | |
import tqdm # progress bar | |
import os.path | |
def download_file(url, filename=False, verbose = False): | |
""" | |
Download file with progressbar | |
This file contains 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
%%writefile make_conda_env.sh | |
#!/usr/bin/env bash | |
# author: github.com/ruxi | |
# reproducibly create conda env | |
read -p "Create new conda env (y/n)?" CONT | |
if [ "$CONT" == "n" ]; then | |
echo "exit"; | |
else |
This file contains 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
__author__ = "lewis.r.liu@gmail.com" | |
__copyright__ = "Copyright 2020, 2018, https://gist.github.com/ruxi/ff0e9255d74a3c187667627214e1f5fa" | |
__license__ = "MIT" | |
__version__ = "0.0.2" | |
# update: June 13, 2020 | |
# created: Feb 19, 2018 | |
# desc: seaborn jointplot with 'hue' | |
# prepared for issue: https://github.com/mwaskom/seaborn/issues/365 | |
# resolved (22 Aug 2020): https://github.com/mwaskom/seaborn/pull/2210 |
This file contains 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
# install latest nvidia driver | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt-get update | |
# then go to device manager and dl newest driver | |
# nvidia-390 for linux >4.13.32 | there is a bug with <nvidia-390 & >linux 4.13.25 | |
This file contains 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
*.img | |
*.raw |
This file contains 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
# source: https://stackoverflow.com/questions/21754976/ | |
import numpy as np | |
from IPython.display import HTML | |
import io | |
import base64 | |
class FlowLayout(object): | |
''' A class / object to display plots in a horizontal / flow layout below a cell ''' | |
def __init__(self): |
This file contains 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
# source: https://stackoverflow.com/questions/21754976/ | |
import numpy as np | |
from IPython.display import HTML | |
import io | |
import base64 | |
class FlowLayout(object): | |
''' A class / object to display plots in a horizontal / flow layout below a cell ''' | |
def __init__(self): |
This file contains 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
# source: https://stackoverflow.com/questions/21754976/ | |
import numpy as np | |
from IPython.display import HTML | |
import io | |
import base64 | |
class FlowLayout(object): | |
''' A class / object to display plots in a horizontal / flow layout below a cell ''' | |
def __init__(self): |
This file contains 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
# source: https://stackoverflow.com/questions/21754976/ | |
import numpy as np | |
from IPython.display import HTML | |
import io | |
import base64 | |
class FlowLayout(object): | |
''' A class / object to display plots in a horizontal / flow layout below a cell ''' | |
def __init__(self): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder