Skip to content

Instantly share code, notes, and snippets.

View themagiulio's full-sized avatar

Giulio De Matteis themagiulio

View GitHub Profile
### Keybase proof
I hereby claim:
* I am themagiulio on github.
* I am themagiulio (https://keybase.io/themagiulio) on keybase.
* I have a public key ASBCgQ6UAezv4Kf1O-k1rfYW1NoFg4yypW-LuxZlqThMKwo
To claim this, I am signing this object:
@themagiulio
themagiulio / bandcamp-desktop_from_master.py
Last active May 13, 2021 10:55
Build Bandcamp Desktop from master branch
import os
import platform
import inquirer
from git import Repo, remote
from pynpm import NPMPackage as npm
class Progress(remote.RemoteProgress):
def update(self, op_code, cur_count, max_count=None, message=''):
print(self._cur_line)
@themagiulio
themagiulio / custom-aromaticity-button.js
Created July 2, 2020 16:33
Customizable Buttons inside aromaticity
var f = "alert(getIUPACName(getSpreadsheetData(true)));";
spreadsheetBtn('IUPAC Name', f);
@themagiulio
themagiulio / main.py
Created March 19, 2020 10:40
COVID-19 Real-time Italy plot of Deaths and Cases
from matplotlib.dates import DateFormatter
import matplotlib.pyplot as plt
import pandas as pd
import os
source = 'https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide-2020-03-18.xls'
index = 'DateRep'
df = pd.read_excel(source, index_col=index)
df_it = df.loc[df['Countries and territories'] == 'Italy'][::-1]
X = df_it.index