Skip to content

Instantly share code, notes, and snippets.

@azimut
azimut / duino.ino
Created November 17, 2015 23:32
duino code
#define LED1 8
#define LED2 9
#define LED3 10
#define LED4 11
#define LED5 12
#define PIN1 3
int leoboton;
#!/usr/bin/python
# A simple script to convert an LDIF file to DOT format for drawing graphs.
# Copyright 2009 Marcin Owsiany <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@azimut
azimut / README.md
Last active October 30, 2020 22:18
Create an animated heat map .gif from your lastfm scrobbler history

Lastfm Heat Map gif

Imgur

Description

Use as input file the output of lastfm-export.py. If you don't want to download one you could use mine here.

heatmaps.py generate the heat maps images on the current directory.

@azimut
azimut / README.md
Last active August 29, 2015 14:05
last fm exporter modified to get track,album and artist info

lastfm-export

Modified version of the original last-export script to also obtain album, artist and track info. Just run it and wait. It might take a while (hours) to complete. If we rush, we might get blocked from the API.

Usage

# lastfm-export.py -u <LASTFM_USERNAME>

What to do next?

@azimut
azimut / do.py
Last active August 29, 2015 14:05
kata - python data analysis
import sys
import pandas as pd
import matplotlib.pylab as plt
pd.options.display.mpl_style = 'default'
mpl_stylesheet = {'interactive':False}
plt.rcParams.update(mpl_stylesheet)
df = pd.read_csv( 'gold.csv')