Skip to content

Instantly share code, notes, and snippets.

View goldfndr's full-sized avatar

Richard Finegold goldfndr

  • Washington state, United States of America
View GitHub Profile
@goldfndr
goldfndr / savethewave.cmd
Created November 6, 2020 15:28
Retrieve on demand audio files from Radio Free America rackspace (no longer in use)
@echo off
set wget="C:\Program Files (x86)\GnuWin32\bin\wget.exe" --no-check-certificate
setlocal EnableDelayedExpansion
rem @echo "Merge MP3" (Downloads) to combine, Kid3 (Start) to change tags
if "%1"=="" goto usage
:@echo off
set date=%1
if "%1"=="next" (
rem Get the already retrieved date
@goldfndr
goldfndr / twinkle_cd.md
Created October 26, 2019 15:59
A mashup between Twinkle, Twinkle and the Alphabet song

Twinkle C-D little G
How I J-K what you P
Q above S world U high
Like an X-Y in the Z
Twinkle CD little G
How I JK where you P

Above is a "mashup" between these two songs:

@goldfndr
goldfndr / bus_shelter.svg
Created April 9, 2018 16:11
bus shelter icon for StreetComplete (WIP)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@goldfndr
goldfndr / crash-20180306.txt
Created March 6, 2018 08:23
StreetComplete 4.0 crash with Location
FATAL EXCEPTION: main
Process: de.westnordost.streetcomplete, PID: 17758
java.lang.RuntimeException: Unable to start activity ComponentInfo{de.westnordost.streetcomplete/de.westnordost.streetcomplete.MainActivity}: java.lang.ClassCastException: android.support.v7.widget.TintContextWrapper cannot be cast to android.app.Activity
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
at android.app.ActivityThread.access$800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5086)
@goldfndr
goldfndr / taginfo.json
Created February 14, 2018 12:49
StreetComplete starting taginfo
{
"data_format": 1,
"data_url": "https://raw.githubusercontent.com/westnordost/StreetComplete/master/taginfo.json",
"project": {
"name": "StreetComplete",
"description": "Surveyor app for Android.",
"project_url": "https://github.com/westnordost/StreetComplete",
"icon_url": "",
"contact_name": "Tobias Zwick",
"contact_email": ""
@goldfndr
goldfndr / palmvcfg.vbs
Created May 20, 2014 20:13
Convert a Palm VCF (vCard 2.1) to something closer to Google Contacts (vCard 3.0) while retaining Custom fields and linebreaks
'Palm VCF to Google Contacts import, by goldfndr
'Many people advocate spending a couple of hours doing search/replaces with their VCF exports.
'But I had 800+ contacts in 16 categories, and didn't want to repeat this.
'Instead, I took an hour to write this (for my Palm Tungsten T3).
'Added an additional hour to refactor and make it work with my Garmin iQue 3600.
'I did not test the ISO 8859-1 encoding or control characters, sorry.
Option Explicit
Const CustomFields="Custom1|Custom2|Custom3|Hours|Custom5|Custom6|Custom7|Custom8|Custom9"
/* An example script for the JOSM ExtTools (ext_tools) plugin.
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ExtTools
After installing the ext_tools plugin, copy this script to your JOSM plugins/ext_tools.
Find the External Tools preferences panel, and within, set a new tool with this CmdLine:
cscript.exe //nologo exttools_example.js {lat} {lon} {PPD}
*/
var pixels=5; //This number is only accurate for horizontal scaling; that's how PPD is calculated.
if (WScript.Arguments.length != 3) {
@goldfndr
goldfndr / exttools_example.vbs
Last active December 18, 2015 03:29
VBScript example for JOSM ext_tools plugin (http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ExtTools)
Option Explicit
'An example script for the JOSM ExtTools (ext_tools) plugin.
'http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ExtTools
'After installing the ext_tools plugin, copy this script to your JOSM plugins/ext_tools.
'Find the External Tools preferences panel, and within, set a new tool with this CmdLine:
' cscript.exe //nologo exttools_example.vbs {lat} {lon} {PPD}
Const pixels=5 'This number is only accurate for horizontal scaling; that's how PPD is calculated.