A minimal table to compare the Espressif's MCU families.
ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | |
---|---|---|---|---|---|---|
Announcement Date | 2014, August | 2016, September | 2019, September | 2020, December |
#define _POSIX_C_SOURCE 199309L | |
//#define DEBUG | |
#include <Imlib2.h> | |
#include <X11/Xatom.h> | |
#include <X11/Xlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> |
convert google takeout archive for location history from kml to gpx and split file into one per day
gpsbabel -i kml -f Location\ History.kml -o gpx -F out.gpx
gpsbabel -t -i gpx -f out.gpx -x track,merge,pack,split,title="ACTIVE LOG # %Y%m%d" -o gpx -F split.gpx
python2 gpxsplitter.py split.gpx
version: '3.3' | |
services: | |
keycloak: | |
image: jboss/keycloak-mysql | |
environment: | |
- constraint:serverclass==gateway | |
- PROXY_ADDRESS_FORWARDING=true | |
- MYSQL_USER=keycloak |
// svgPathToCommands('M10,10 l 5,7 C-5,7.2,.3-16,24,10 z'); | |
// | |
// produces: | |
// | |
// [ { marker: "M", values: [ 10, 10 ] }, | |
// { marker: "l", values: [ 5, 7 ] }, | |
// { marker: "C", values: [ -5, 7.2, 0.3, -16, 24, 10 ] }, | |
// { marker: "z", values: [ ] } ] | |
// | |
// commandsToSvgPath(svgPathToCommands('M10,10 l 5,7 C-5,7.2,.3-16,24,10 z')) |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
/** | |
* Different case matchers | |
* | |
* @see <a href="https://en.wikipedia.org/wiki/Naming_convention_(programming)#Examples_of_multiple-word_identifier_formats">Examples of multiple word identifier formats</ | |
*/ | |
sealed class CaseMatcher(private val regex: Regex) { | |
open fun notMatches(source: String?): Boolean { | |
return !matches(source) | |
} |
DEVICE=1.2.3.4
MIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases
FEDORA=29
FILE=tcpdump-4.9.2-6.fc29.armv7hl.rpm
PACKAGE=Everything/armhfp/os/Packages/t/$FILE
wget $MIRROR/$FEDORA/$PACKAGE
# see https://gist.github.com/cfstras/4856e48fd4d68eb7debaa20d5e63c6de