Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Andrews mdda

View GitHub Profile
@mdda
mdda / tpu.md
Created Jan 19, 2020 — forked from SamuelMarks/tpu.md
Nothing to TPU in 5 Google Cloud commands
View tpu.md

Google Cloud configuration

First: install the CLI program for your distribution: https://cloud.google.com/sdk/install

Parameters

Modify accordingly:

export REGION='us-central1'
export ZONE='us-central1-f'
export PROJECT_NAME='proj'
View Signal reconstruction from spectrograms.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mdda
mdda / csv_to_sqlite.py
Created Jul 18, 2014
CSV-to-sqlite importer with simple DSL to map ports 'AIS' data
View csv_to_sqlite.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sqlite3
import re
import sys, csv
import datetime, time
db_file = "ports.db"
You can’t perform that action at this time.