Skip to content

Instantly share code, notes, and snippets.

View altwitt's full-sized avatar

Harrison Witt altwitt

  • Geospatial Developer
  • Memphis, TN
  • 05:25 (UTC -05:00)
View GitHub Profile
@altwitt
altwitt / json_to_xml.py
Created August 18, 2018 18:54
Two-way conversion between json and xml
import json
import xmltodict
with open('sample.json', 'r') as f:
jsonString = f.read()
print('JSON input (sample.json):')
print(jsonString)
xmlString = xmltodict.unparse(json.loads(jsonString), pretty=True)
@altwitt
altwitt / progress_bar.py
Created August 18, 2018 19:00
Awesome command-line animated progress bar written in python
#!/usr/bin/env python
#
# Corey Goldberg - 2010
# ascii command-line progress bar with percentage and elapsed time display
#
import sys
import time
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"S12000033":{"name":"Aberdeen City","regionName":"Scotland","winningPartyCode":"REMAIN","turnout":"67.9","remainVoteshare":"61.1","remainVotes":"63985.0","leaveVoteshare":"38.9","leaveVotes":"40729.0","leaveVoteshareRank":357,"remainVoteshareRank":43},"S12000034":{"name":"Aberdeenshire","regionName":"Scotland","winningPartyCode":"REMAIN","turnout":"70.6","remainVoteshare":"55.0","remainVotes":"76445.0","leaveVoteshare":"45.0","leaveVotes":"62516.0","leaveVoteshareRank":311,"remainVoteshareRank":89},"E07000223":{"name":"Adur","regionName":"South East","winningPartyCode":"LEAVE","turnout":"76.4","remainVoteshare":"45.4","remainVotes":"16914.0","leaveVoteshare":"54.6","leaveVotes":"20315.0","leaveVoteshareRank":188,"remainVoteshareRank":212},"E07000026":{"name":"Allerdale","regionName":"North West","winningPartyCode":"LEAVE","turnout":"72.9","remainVoteshare":"41.4","remainVotes":"22429.0","leaveVoteshare":"58.6","leaveVotes":"31809.0","leaveVoteshareRank":120,"remainVoteshareRank":280},"E07000032":{"name":"Amb
@altwitt
altwitt / memphis_museums.geojson
Created August 24, 2018 00:46
Memphis-Area museums
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Title: "What is a Techanimist?"" Date: 2018-07-22 Category: Philosophy Slug: what-is-a-techanimist?

What is a Techanimist?

If you are here, you might be wondering what the word techanimist means. It is the combination of two words — technology and animism.

-Technology is defined as the practical application of knowledge especially in a particular area. But for the theme or philosophy of this site, I want the word to convey a sense of progress and how it applies to advances in the fields of science, engineering, and the sharing of knowledge.

subscriptions = [
"https://motherboard.vice.com/en_us/rss?trk_source=motherboard",
"https://www.theatlantic.com/feed/notes/",
"https://www.wired.com/category/science/feed",
"https://phys.org/rss-feed/",
"http://feeds.sciencedaily.com/sciencedaily/computers_math/computer_science",
"http://newsoffice.mit.edu/rss/topic/computers",
"http://www.nature.com/subjects/computer-science.rss",
"http://www.nature.com/subjects/mathematics-and-computing.rss",
"feed:https://news.ycombinator.com/rss",
TOP = ["http://geoawesomeness.com/feed", "https://motherboard.vice.com/en_us/rss?trk_source=motherboard",
"https://www.gislounge.com/feed"]
rss = {
"NEWS": [
"https://motherboard.vice.com/en_us/rss?trk_source=motherboard",
"https://www.theatlantic.com/feed/notes/",
"https://www.wired.com/category/science/feed",
"https://phys.org/rss-feed/",
"http://feeds.sciencedaily.com/sciencedaily/computers_math/computer_science",
#!/usr/bin/env bash
###########################################
## MYBASHPROFILE 05.07.2019
###########################################
#######################################4
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi