Skip to content

Instantly share code, notes, and snippets.

View greimel's full-sized avatar

Fabian Greimel greimel

View GitHub Profile
@greimel
greimel / distance_grid.jl
Created February 5, 2020 14:50 — forked from jkrumbiegel/distance_grid.jl
get a grid of distances and durations between one location and a grid of locations
using HTTP
using Dates
using Printf
using JSON
using DataFrames
using CSV
hbf_location = "53.5527704,10.0065856"
@greimel
greimel / unpack-or-not-unpack.jl
Created January 31, 2018 15:07 — forked from anonymous/unpack-or-not-unpack.jl
Should we unpack in inner or outer function?
using Parameters
type Par{T <: Real}
α::T
β::T
end
### Implementation 1: unpack in outer function
function f1(x::T, y::T, α::T, β::T) where T <: Real
x^α * y^β