Library | Static / Dynamic | Cartesian / Geographic | kNN | Index containing points | Index containing boxes | Within radius |
---|---|---|---|---|---|---|
rbush | dynamic | 🗺️ cartesian | ❌ | ✔️ | ✔️ | ❌ |
rbush-knn | dynamic | 🗺️ cartesian | ✔️ | ✔️ | ✔️ | ✔️ |
kdbush | static | 🗺️ cartesian | ❌ | ✔️ | ❌ | ✔️ |
geokdbush | static | 🌏 geo | ✔️ | ✔️ | ❌ | ✔️ |
flatbush | static | 🗺️ cartesian | ✔️ | ✔️ | ✔️ | ✔️ |
geoflatbush | static | 🌏 geo | ✔️ | :heavy_che |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: Gaute Hope <eg@gaute.vetsj.com> / 2017-10-08 | |
import os, sys, os.path | |
import subprocess | |
import notmuch | |
import email | |
import email.parser | |
import email.policy |
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
So you were able to install Kodi via "sudo apt-get install kodi" but have no idea how to force it to autostart on boot? | |
You have tried all those googled solutions such as adding kodi-standalone to .bashrc, creating init.d script but nothing worked? | |
This is the right place to get the answer. | |
For some reason, the current version of Kodi doesnt provide 2 important files: | |
/etc/init.d/kodi | |
/etc/default/kodi |
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/python | |
# | |
# Author: Gaute Hope <eg@gaute.vetsj.com> / 2016-08-12 | |
# | |
# Find all substrings in a string with the number of occurences of a set of | |
# characters pre-defined. | |
# | |
# A prime number is assigned to each character in the key set, all other | |
# characters are assigned 1. The product of the key set will match the product | |
# of the substring. Search the string with a running product to find substring |
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
import numpy as np | |
def cart2pol(x, y): | |
''' | |
cartesian to polar coordinates | |
''' | |
theta = np.arctan2(y, x) | |
rho = np.sqrt(x**2 + y**2) | |
return (theta, rho) |
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
# ======================================================================================= | |
# Startup file with magic functions: %my_run, %add_custom_path, %clean_custom_path and | |
# %show_custom_path, which runs stuff in the python path as well as user specified paths. | |
# | |
# The %my_run command executes a script as %run does but searching the script in | |
# the user path in addition to python path. | |
# | |
# --------------------------------------------------------------------------------------- | |
# This is a modification of the code done by Gaute Hope <gaute.hope@nersc.no> due to | |
# IPython issue 101 |
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
# based on ipython issue #101 | |
# | |
# author: Gaute Hope <gaute.hope@nersc.no> / 2015 | |
# | |
# references: | |
# | |
# https://github.com/ipython/ipython/issues/101 | |
# http://ipython.org/ipython-doc/dev/config/custommagics.html | |
# |
NewerOlder