Skip to content

Instantly share code, notes, and snippets.

View beefoo's full-sized avatar

Brian Foo beefoo

View GitHub Profile
@beefoo
beefoo / downloadFiles.py
Created July 30, 2018 02:01
Simply download a list of urls to file
#!/usr/bin/python
# Usage: python download.py input/urls.dat output/dir
import os
import sys
import urllib
filename = sys.argv[1]
outputdir = sys.argv[2]
{"title":"My Memory Map","legend":1,"labels":1,"stations":[{"label":"Memory One","lines":["Annie","Cathy"]},{"label":"Memory 2","lines":["Bob","Annie"]},{"label":"Memory 3","lines":["Bob","Annie","Cathy"]}],"lines":["Bob","Annie","Cathy"]}
{
"title": "My Memory Map",
"legend": 1,
"labels": 1,
"stations": [
{
"label": "Memory One",
"lines": [
"Annie",
"Cathy"