https://fonts.google.com/?selection.family=Open+Sans
cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip
xr.DataArray(array, coords=da.coords, dims=da.dims, attrs=da.attrs) |
import urllib2 | |
import json | |
import csv | |
def write_to_csv(url): | |
response = urllib2.urlopen(url) | |
track_list = json.load(response) | |
for song in track_list: |
#!/usr/bin/env python | |
# Author: David Huss | |
# Website: http://blog.atoaudiovisual.com | |
# Usage instructions http://blog.atoav.com/2013/09/restore-broken-deja-dup-backup-hand/ | |
# Modified by Antonio Roberts to preserve folder structure | |
import Tkinter as tk | |
from tkFileDialog import * | |
import sys, os |
/* | |
The Spotify API call, 'top-tracks' requires a ISO 3166-1 alpha-2 country code | |
//https://developer.spotify.com/web-api/get-artists-top-tracks/ | |
//https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 | |
//https://www.spotify.com/nl/legal/end-user-agreement/plain/#s19 | |
//EU is not included in this list, as it generates this error: | |
{ | |
"error": { | |
"status": 400, | |
"message": "Invalid country code" |
#/usr/bin/python | |
import datetime, calendar | |
lastFriday = datetime.date.today() | |
oneday = datetime.timedelta(days=1) | |
while lastFriday.weekday() != calendar.FRIDAY: | |
lastFriday -= oneday | |
print lastFriday.strftime("%D") |