I hereby claim:
- I am nathanielatom on github.
- I am nathanielatom (https://keybase.io/nathanielatom) on keybase.
- I have a public key ASAhs7DyfGGy1ft_EOVnP4kkuvMtqJIc5NJSPcZ-yTfSVgo
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| """ | |
| Find out where Mars is, in the sky at P'diddy Island, PEI, ON, Canada. | |
| """ | |
| import datetime | |
| # ! pip install skyfield | |
| from skyfield.api import load, Topos |
| # Install: https://qgis.org/en/site/ (GDAL gets installed automatically) | |
| # Follow the guide here: https://expeditionportal.com/forum/threads/create-georeference-pdf-files-for-avenzas-pdf-maps-app.137086/ | |
| # QGIS Version used: 3.10.4 | |
| # 0. The general idea is to identify the coordinates of several points on the map, whether | |
| # landmarks or grid intersections, and use that to calculate the geographic reference metadata. | |
| # 1. Convert map file to TIFF (.tiff) image format. Use uncompressed if given the option. | |
| # The Mac Preview application seems better than ImageMagick at creating high quality tiff files, but any | |
| # imaging program with reasonable resolution conversion capability should work. If you don't have one, |
I hereby claim:
To claim this, I am signing this object:
| import webbrowser | |
| import base64 | |
| def browser_msg(message): | |
| webbrowser.open("data:{mime_type};base64,{data}".format(mime_type='text/html', data=base64.b64encode(message.encode()).decode())) | |
| browser_msg("Hello world") |
| # Mac | |
| brew cask install chromium | |
| pip install selenium | |
| wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_mac64.zip | |
| unzip chromedriver_mac64.zip -d /usr/local/bin/ | |
| rm chromedriver_mac64.zip | |
| # python | |
| from selenium import webdriver | |
| options = webdriver.ChromeOptions() |
| # encoding: utf-8 | |
| import bokeh.models as bkm | |
| import bokeh.core as bkc | |
| from bokeh.util.compiler import JavaScript | |
| class AudioPlayerModel(bkm.layouts.Column): | |
| """ | |
| Audio player using https://howlerjs.com/. |
| # Tensorflow 0.9 with GPU from binary for ubuntu linux 64 bit. Assumes anaconda python 2 is already installed. | |
| cd ~ | |
| conda update conda | |
| conda update anaconda | |
| # update environment variables | |
| echo 'export CUDA_HOME="/usr/local/cuda"' >> setup-env.sh | |
| echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$CUDA_HOME/lib64"' >> setup-env.sh | |
| echo 'export PATH="$CUDA_HOME/bin:$PATH"' >> setup-env.sh | |
| sudo cp setup-env.sh /etc/profile.d/ | |
| rm setup-env.sh |