Skip to content

Instantly share code, notes, and snippets.

ruxi

Block or report user

Report or block ruxi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ruxi
ruxi / FlowLayoutGist.py
Last active Apr 16, 2018
Plot horizontally in jupyter notebooks. source: https://stackoverflow.com/questions/21754976/
View FlowLayoutGist.py
# 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):
View horizontal_plots_jupyter.py
# 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):
View horizontal_plots_jupyter.py
# 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):
View horizontal_plots_jupyter.py
# 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):
@ruxi
ruxi / opendata_liesure_winnipeg2018.ipynb
Created Mar 3, 2018
opendata hackathon 2018 (rough draft)
View opendata_liesure_winnipeg2018.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruxi
ruxi / jointplot_w_hue.py
Last active Mar 15, 2019
jointplot_w_hue
View jointplot_w_hue.py
__author__ = "lewis.r.liu@gmail.com"
__copyright__ = "Copyright 2018, github.com/ruxi"
__license__ = "MIT"
__version__ = 0.0.1
# update: Mar 5 , 2018
# created: Feb 19, 2018
# desc: seaborn jointplot with 'hue'
# prepared for issue: https://github.com/mwaskom/seaborn/issues/365
"""
@ruxi
ruxi / xgboost_gpu_build.txt
Last active May 20, 2019
how to build xgboost with gpu support
View xgboost_gpu_build.txt
# 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
View gitpath v2
"""gitpath v2, modified
Copyright (c) 2017 github.com/ruxi
Copyright (c) 2015 Maximilian Nöthe
Licensed under the MIT
"""
import subprocess
import os.path
def gitpath(chdir = False):
"""change dirpath to git root directory, or use-rdefined path
@ruxi
ruxi / DictOptions2Combos.py
Last active Sep 26, 2017
combinations (tuple of dicts) from possible options (dict with lists)
View DictOptions2Combos.py
#!/usr/bin/env python
"""
Author: https://github.com/ruxi
Date Created: Tuesday, 26 Sep 2017
last updated: Tuesday, 26 Sep 2017
Python Version: 3.6
"""
__author__ = "https://github.com/ruxi"
__date_created__ = "Tuesday, 26 Sep 2017"
View install slic3r prusa edition
sudo add-apt-repository ppa:santilli-gabriele/slic3r-prusa
sudo apt-get update
sudo apt install slic3r-prusa
# source
## http://shop.prusa3d.com/forum/original-prusa-i3-mk2-f23/ubuntu-ppa-for-slic3r-prusa-edition-t3042.html
You can’t perform that action at this time.