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
((((?!(Az |A ))\p{Lu}(\p{L}|-)*|[0-9]+)\W*)+(\p{L}|[0-9])*\W{1,3}(?!(között|után))(akn[aá]|árok|árko|átjáró|básty[aá]|dűlő[uú]t|dűlő|erdősor|fasor|forduló|gát|határsor|határ[uú]t|h[ií]d|kapu|kolóni[aá]|körönd|kört[eé]r|kör[uú]t|köz|lejáró|lejtő|lépcső|liget|mély[uú]t|orom|ormo|ösvény|park|part|pincesor|puszt[aá]|rakpart|sétány|sor|sugár[uú]t|tany[aá]|ter[eé]|tér|udvar|utc[aá]|[uú]t|üdülőpart)(j[aáeé]|)) |
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
require(jsonlite) | |
require(curl) | |
google_maps <- function(datafile, gapikey, save_file = FALSE){ | |
# This function takes origin-destination pairs and returns the distance and | |
# trip duration between these pairs as a data frame | |
# | |
# _datafile_ is a string that is the name of a csv file in which each line | |
# contains an origin and a destination separated by a comma. | |
# |
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
# take a Unix timestamp and print it in human-readable form; | |
# works both on Linux and OS X. | |
# | |
# copy this to your .bash_profile, then you can use it as: | |
# from_unixtime 1460558700 | |
# returns: Wed Apr 13 16:45:00 CEST 2016 | |
from_unixtime() { | |
thedate="$1" | |
thedate=${thedate:0:10} |
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 4 columns, instead of 3. in line 8.
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
camel_count,timestamp,url,parsed_timestamp | |
47045.0,20011023075905,https://web.archive.org/web/20011023075905/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2001-10-23 07:59:05 | |
58769.0,20011213235955,https://web.archive.org/web/20011213235955/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2001-12-13 23:59:55 | |
74500.0,20020214002239,https://web.archive.org/web/20020214002239/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2002-02-14 00:22:39 | |
93191.0,20020606135002,https://web.archive.org/web/20020606135002/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2002-06-06 13:50:02 | |
95242.0,20021002181254,https://web.archive.org/web/20021002181254/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2002-10-02 18:12:54 | |
95871.0,20021201083309,https://web.archive.org/web/20021201083309/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2002-12-01 08:33:09 | |
101449.0,20030201092235,https://web.archive.org/web/20030201092235/http://www.teveclub.hu/cgi-bin/farm/farm.cgi,2003-02-01 09:22:35 | |
101449.0,20030404102612,https://web.archive.org/web/20030404102 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# 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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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. | |
""" |
OlderNewer