Skip to content

Instantly share code, notes, and snippets.

View thehapax's full-sized avatar

The Hapax thehapax

  • the universe
View GitHub Profile
@thehapax
thehapax / country-code-to-currency-code-mapping.csv
Created May 22, 2019 08:03 — forked from HarishChaudhari/country-code-to-currency-code-mapping.csv
Country, Country Code, Currency code mapping in CSV format Taken from https://gist.github.com/304261 Contains 249 countries.
Country CountryCode Currency Code
New Zealand NZ New Zealand Dollars NZD
Cook Islands CK New Zealand Dollars NZD
Niue NU New Zealand Dollars NZD
Pitcairn PN New Zealand Dollars NZD
Tokelau TK New Zealand Dollars NZD
Australian AU Australian Dollars AUD
Christmas Island CX Australian Dollars AUD
Cocos (Keeling) Islands CC Australian Dollars AUD
Heard and Mc Donald Islands HM Australian Dollars AUD
@thehapax
thehapax / plotly-data-privacy.py
Last active June 16, 2019 00:48
How to turn on data privacy in plotly
import pandas as pd
from datetime import datetime
from plotly.offline import download_plotlyjs, plot
# dash apps will use go from plotly.graph_objs for displaying charts.
import plotly.graph_objs as go
# preserve privacy!
import plotly.tools
plotly.tools.set_config_file(world_readable=False, sharing='private')

Keybase proof

I hereby claim:

  • I am thehapax on github.
  • I am octomatic (https://keybase.io/octomatic) on keybase.
  • I have a public key ASCve0pau6UYFJ1Lnma4zv9E_XEhYvy2_INL1389mBlFMgo

To claim this, I am signing this object:

@thehapax
thehapax / btcpayserver_install_env.sh
Last active December 22, 2019 05:55 — forked from rockstardev/btcpayserver_install_env.sh
Setting up BTCPayServer development environment on Linux (Ubuntu)
# Installing prerequisites for BTCPayServer development on Ubuntu
# Install .NET Core SDK 2.2
# https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install?initial-os=linux
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe