Skip to content

Instantly share code, notes, and snippets.

@matthewearl
matthewearl / smblevextract.py
Last active April 29, 2022 17:48
Super Mario Bros Level Extractor
#!/usr/bin/env python3
#
# Copyright (c) 2018 Matthew Earl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@matthewearl
matthewearl / gmapped2gpx.py
Created May 28, 2018 15:13
Short script to convert gmap pedometer URLs into GPX files
import sys
import urllib.parse
import urllib.request
import numpy as np
in_url = sys.argv[1]
q = urllib.parse.urlparse(in_url).query
d = urllib.parse.parse_qs(q)