Skip to content

Instantly share code, notes, and snippets.

Avatar

andrashann

View GitHub Profile
@andrashann
andrashann / hochschwab.ipynb
Created Jul 28, 2022
hochschwab hike comparison
View hochschwab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View kektura-valtozasok.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andrashann
andrashann / hungary_road_numbers.ipynb
Created Feb 19, 2022
Notebook to create a map highlighting the first digit of road numbers in Hungary
View hungary_road_numbers.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View kistajak.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andrashann
andrashann / cmap_map.py
Created Oct 17, 2020
Companion notebook to my article about population density and social distancing
View cmap_map.py
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
#https://scipy-cookbook.readthedocs.io/items/Matplotlib_ColormapTransformations.html
def cmap_map(function, cmap):
""" Applies function (which should operate on vectors of shape 3: [r, g, b]), on colormap cmap.
This routine will break any discontinuous points in a colormap.
"""
@andrashann
andrashann / Tram 6 renovation visualization.ipynb
Last active Jun 17, 2020
A time-space graph showing construction works on tram line 6 in Budapest. This code is released under the MIT license.
View Tram 6 renovation visualization.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View programmatic_design.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ddk.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andrashann
andrashann / cl.sh
Last active Dec 30, 2021
Command line notes – a collection of useful one-liners
View cl.sh
# Copyright 2019 A. H.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@andrashann
andrashann / cyrillic-latin-intersection.ipynb
Last active Dec 3, 2018
Which English words could we write using only letters that also appear in the Cyrillic alphabet?
View cyrillic-latin-intersection.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.