See script below.
Make sure the Python file is executable. Then:
$ ./mpl2qgis.py viridis bone
This writes a file colourmaps.xml
. Result:
#!/bin/sh | |
# this program has been updated to list both the images and the largest images and the slide numbers together | |
# get the parameter | |
echo "working on" "$1" | |
rm -r /tmp/big-images 2> /dev/null | |
mkdir /tmp/big-images | |
# copy the ppt file to /tmp | |
cp "$1" /tmp/big-images | |
# rename it to be .zip | |
mv "/tmp/big-images/$1" "/tmp/big-images/$1.zip" |
# Requirements: | |
# HDF5 library version 1.10.5 or later | |
# h5py version 3.0 or later | |
# pip install git+https://github.com/HDFGroup/zarr-python.git@hdf5 | |
import logging | |
from urllib.parse import urlparse, urlunparse | |
import numpy as np | |
import h5py | |
import zarr |
{"lastUpload":"2020-08-05T17:57:14.476Z","extensionVersion":"v3.4.3"} |
To verify that your GPU is CUDA-capable, go to your distribution's equivalent of System Properties, or, from the command line, enter:
lspci | grep -i nvidia
If you do not see any settings, update the PCI hardware database that Linux maintains by entering update-pciids (generally found in /sbin) at the command line and rerun the previous lspci command.
If your graphics card is from NVIDIA and it is listed in CUDA-GPUS, your GPU is CUDA-capable.
Find out how much memory each of the jupyter notebooks running on a server is using. Helpful for knowing which ones to shut down.
Original code from http://stackoverflow.com/questions/34685825/jupyter-notebook-memory-usage-for-each-notebook
You'll need to
pip install tabulate psutil pandas requests
Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.
If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3
HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.
Follow along...
Python version of the MATLAB code in this Stack Overflow post: https://stackoverflow.com/a/18648210/97160
The example shows how to determine the best-fit plane/surface (1st or higher order polynomial) over a set of three-dimensional points.
Implemented in Python + NumPy + SciPy + matplotlib.
Last Update: May 13, 2019
Offline Version