This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import csv | |
import datetime | |
import calendar | |
import time | |
i=0 | |
# Change the range depending on how long you like to record the data | |
for i in range (0,50): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the active nodejs virtualenv[1] | |
# * the branch/status of the current Git, Mercurial or Subversion repository | |
# * the return value of the previous command | |
# * one line prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Changes XML to JSON | |
// Modified version from here: http://davidwalsh.name/convert-xml-json | |
function xmlToJson(xml) { | |
// Create the return object | |
var obj = {}; | |
if (xml.nodeType == 1) { // element | |
// do attributes | |
if (xml.attributes.length > 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// blindtiffs | |
// ---------- | |
// Usage: blindtiffs <src> <dst> | |
// Recursively copies folder <src> to folder <dst>. | |
// All GeoTIFFs in the source tree are 'blinded' by | |
// gdal_calc.py to have zero channels but still contain | |
// all the meta data. | |
// | |
// (c) 2017 by Sascha L. Teichmann |
NewerOlder