Skip to content

Instantly share code, notes, and snippets.

View danieltomasz's full-sized avatar

Daniel Borek danieltomasz

View GitHub Profile
@danieltomasz
danieltomasz / install_packages_python_locally.md
Created February 8, 2019 14:19
How to install python packages downloaded from github

Open terminal in inside downloaded folder. When the folder has setup.py scripts probably could by installed as module.

When you using conda install first install build package

# Display information about current conda install
conda info

# Install conda-build in the current env
conda install conda-build
@danieltomasz
danieltomasz / neomuttrc
Created June 25, 2018 01:28 — forked from VladimirPal/neomuttrc
Minimal neomutt config for gmail imap
set imap_user="[email protected]"
set imap_pass=`/usr/bin/security find-generic-password -w -a '[email protected]' -s 'Gmail'`
set folder=imaps://imap.gmail.com/
set spoolfile=+INBOX
set record="+[Gmail]/Sent Mail"
set postponed="+[Gmail]/Drafts"
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
@danieltomasz
danieltomasz / snippet.md
Created June 22, 2018 13:46
python notebook name of the kernel
%%javascript
var kernel = Jupyter.notebook.kernel
kernel.execute('kernel_name = ' + '"' + kernel.name + '"')
print(kernel_name)
from jupyter_client import kernelspec
spec = kernelspec.get_kernel_spec(kernel_name)
@danieltomasz
danieltomasz / README.rst
Created June 21, 2018 22:50 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@danieltomasz
danieltomasz / snippet.sh
Created June 21, 2018 15:16
install pythn environment for user to use
source activate thisenv
python -m ipykernel install --user --name thisenv
@danieltomasz
danieltomasz / filezilla.md
Created June 21, 2018 12:46
install filezilla

To install Filezilla 3.30, first download the updated version from here.

Go to the ~/Downloads folder.

cd ~/Downloads

Now uncompress the downloaded file.

tar -vxjf FileZilla_3.30.0_x86_64-linux-gnu.tar.bz2
@danieltomasz
danieltomasz / triangluar_heatmap.py
Created June 20, 2018 21:20 — forked from lucananni93/triangluar_heatmap.py
Create a triangular correlation plot (triangular heatmap)
import numpy as np
import seaborn as sns
from scipy.ndimage import rotate
def plot_heatmap_triu(m, shape=(10,10)):
"""
Plot a symmetric matrix as a triangluar heatmap.
- m: 2d ndarray of numpy (symmetric)

Github Flavored Theme for Ipython/Jupyter Notebook

Put custom.css in .jupyter/custom/ (if you are running recent version of Jupyter).

Note: Tested only on Chrome. Let me know if something is not working.

img1 img1 img1

@danieltomasz
danieltomasz / intalling.md
Created June 19, 2018 18:35
installing i3lock-color screensaver
@danieltomasz
danieltomasz / bobp-python.md
Created June 19, 2018 16:30 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens