Skip to content

Instantly share code, notes, and snippets.

@RenSys
RenSys / Numpy - Vector Normalization - unit vectors - np.linalg.norm.ipynb
Created January 24, 2018 06:02
Numpy - Vector Normalization - unit vectors - np.linalg.norm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / 02 Safaribooks - Tensorflow for deep-learning Concepts.ipynb
Last active June 22, 2018 11:59
02 Safaribooks - Tensorflow for deep-learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / seaborn - tsplot.ipynb
Last active June 22, 2018 12:01
seaborn - tsplop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Stats - Interpreting Pearson's Correlation Values.ipynb
Created October 3, 2017 04:01
Stats - Interpreting Pearson's Correlation Values
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@radulucaciu
radulucaciu / imagerepair.py
Created September 13, 2017 14:06
Python script that uses ML techniques (KNN) to repair missing pixels from image
import numpy as np
import pandas as pd
import pylab as pl
import os
from sklearn.neighbors import KNeighborsClassifier
from IPython.core.pylabtools import figsize
from PIL import Image
def load_image(filename):
@RenSys
RenSys / Python Standard - deque - queues with tools.ipynb
Created September 12, 2017 22:12
Python Standard - deque - queues with tools
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RenSys
RenSys / Python Standard - Priority Queues.ipynb
Created September 12, 2017 21:50
Python Standard - Priority Queues
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fish2000
fish2000 / asscat.py
Last active May 10, 2019 01:23
Pillow-based asset catalog image-scaler CLT
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# asscat.py
#
# Generate a properly scaled 1x/2x/3x set of PNGs, optionally with
# generated JSON metadata and/or subfolders, for each single given image.
# For use with, like, all those Xcode asset catalogs and shit.
# Requires the Pillow and docopt modules; optionally makes use of six.
#
@costa
costa / medium-pycharm-remote-docker-dev.md
Last active February 27, 2020 01:59
Setting up remote (really remote) containerised development environment with PyCharm (Medium blogpost)
UPDATED!!

TL;DR Wanna work with a remote Docker container in local PyCharm? Now you can!

NB This walkthrough requires a bit of experience with both PyCharm and Docker, plus a *NIX dev env.

At the moment of writing, PyCharm doesn't support development process with a remote Docker host, which is quite an obstacle for serious and comfortable data-analysis work. Fortunately, present-day PyCharm does support "remote interpreters" via SSH, so here I describe how to setup a containerised project appropriately. This takes a little more than 5 minutes, but in the end you will have the comfort of the local PyCharm plus security and performance of a remote host (plus the evident interoperability of Docker).

import os
import numpy as np
import colour
from colour_hdri import *
RESOURCES_DIRECTORY = '/Users/kelsolaar/Downloads/Tiff'
TIFF_FILES = filter_files(RESOURCES_DIRECTORY, ('tiff',))