Skip to content

Instantly share code, notes, and snippets.

Tim Tröndle timtroendle

  • ETH Zurich
Block or report user

Report or block timtroendle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View marked2_custom_processor.sh
#!/bin/bash
PATH="/Users/trtim/miniconda3/envs/default/bin:${PATH}"
cd /Users/trtim/Develop/resource-potentials/report/
cat | pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block -w html --standalone --bibliography=/Users/trtim/.pandoc/literature.bib --csl=/Users/trtim/Develop/resource-potentials/report/energy-strategy-reviews.csl --filter /Users/trtim/miniconda3/envs/default/bin/pantable --filter /Users/trtim/miniconda3/envs/default/bin/pandoc-fignos --filter /Users/trtim/miniconda3/envs/default/bin/pandoc-tablenos --filter /Users/trtim/miniconda3/envs/default/bin/pandoc-citeproc
@timtroendle
timtroendle / openmod-zurich-2018-feedback.csv
Created Jun 18, 2018
openmod Zürich 2018 workshop evaluation
View openmod-zurich-2018-feedback.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 1.
"Timestamp","The workshop was worth my time [Was it?]","What do you think about the programme? [Keynotes]","What do you think about the programme? [Speed dating session]","What do you think about the programme? [Poster session]","What do you think about the programme? [Do-a-thons]","What do you think about the programme? [Lightning talks]","What do you think about the programme? [Workshop booklet]","My preferred order of sessions is:","Do you have specific comments about the programme?","What do you think about the organisation of this workshop? [There were enough breaks between sessions]","What do you think about the organisation of this workshop? [I received timely announcements]","What do you think about the organisation of this workshop? [I could find all necessary information easily]","What do you think about the organisation of this workshop? [The forum should be used more heavily for workshop and session organisation]","What do you think about the organisation of this workshop? [Organising do-a-thons o
@timtroendle
timtroendle / test_consecutive_plots.py
Created Apr 26, 2018
Prototype of plotting matplotlib plots in consecutive processes.
View test_consecutive_plots.py
"""Prototype of plotting matplotlib plots in consecutive processes.."""
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
from multiprocessing import Pool
# avoid to import pyplot as it'll import (on my machine) backends that fail with multiprocessing.
def do_plot(number):
fig = Figure(figsize=(13, 7))
FigureCanvas(fig)
ax = fig.add_subplot(1, 1, 1)
View geolocating-epc.py
import geopandas as gpd
import pandas as pd
import fiona
fiona.drvsupport.supported_drivers['kml'] = 'rw' # enable KML support which is disabled by default
fiona.drvsupport.supported_drivers['KML'] = 'rw' # enable KML support which is disabled by default
epc_data = pd.read_excel('./data/macromerge3.xlsm', sheetname='DomesticBulkDataAB')
geocodes = gpd.tools.geocode(["{}, {}".format(row.ADDRESS1, row.POSTCODE) for index, row in epc_data[:20].iterrows()],
provider='googlev3')
@timtroendle
timtroendle / ukmapconvert.py
Created Nov 17, 2016
Script to transform UKMap and LSOA data into a form readable by CiMo.
View ukmapconvert.py
from pathlib import Path
import geopandas as gpd
import click
click.disable_unicode_literals_warning = True
ACTUAL_LSOA_COLUMN_NAME = 'LSOA_CODE'
NEEDED_LSOA_COLUMN_NAME = 'LSOAcode'
You can’t perform that action at this time.