Skip to content

Instantly share code, notes, and snippets.

View SCWhite's full-sized avatar

SCWhite

  • ACADEMIA SINICA
View GitHub Profile
@SCWhite
SCWhite / samd21-uuid.c
Created February 2, 2023 06:12 — forked from Scottapotamas/samd21-uuid.c
Get 128-bit UUID from SAMD21 micro - C (Arduino compatible)
uint32_t * get_chip_uuid()
{
static uint32_t uuid[3] = { 0 };
uuid[0] = *(volatile uint32_t *)0x0080A00C;
uuid[1] = *(volatile uint32_t *)0x0080A040;
uuid[2] = *(volatile uint32_t *)0x0080A044;
uuid[3] = *(volatile uint32_t *)0x0080A048;
return uuid;
}
@SCWhite
SCWhite / GoogleMapDownloader.py
Created July 17, 2020 11:52 — forked from eskriett/GoogleMapDownloader.py
A python script to download high resolution Google map images given a longitude, latitude and zoom level.
#!/usr/bin/python
# GoogleMapDownloader.py
# Created by Hayden Eskriett [http://eskriett.com]
#
# A script which when given a longitude, latitude and zoom level downloads a
# high resolution google map
# Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/
import urllib
import Image