Skip to content

Instantly share code, notes, and snippets.

View jhohlfeld's full-sized avatar
🏖️
Working on open data for tourism

Jakob Hohlfeld jhohlfeld

🏖️
Working on open data for tourism
View GitHub Profile
@jhohlfeld
jhohlfeld / stats-mecklenburg-vorpommern.txt
Created November 6, 2023 15:41
Analyse der Relations für Mecklenburg-Vorpommern
Stats
--------------------
Total number of relations: 911
Boundary values (count):
administrative 896
land_area 5
maritime 3
religious_administration 1
@jhohlfeld
jhohlfeld / reactive-programming-js.md
Last active May 31, 2016 13:43
Functional reactive programming in javascript.

Reactive programming with Javascript

Polyban.io logo

Jakob Hohlfeld Web Developer, Freelancer, Founder, Entrepreneur @jhohlfeld


@jhohlfeld
jhohlfeld / gist:bc0ed726550192eb183d
Created June 12, 2015 08:10
Run different node.js versions on a Mac using homebrew

I suppose you already installed homebrew nad have one current version of node installed.

Reference taken from https://gist.github.com/kugaevsky/68a7fa894551da9c310a

First, add an older formula of node:

$ cd /usr/local
$ git checkout b64d9b9c431642a7dd8d85c8de5a530f2c79d924 Library/Formula/node.rb
$ brew unlink node
@jhohlfeld
jhohlfeld / Google Music Equalizer.markdown
Last active December 4, 2015 00:37
Google Music Equalizer
@jhohlfeld
jhohlfeld / mapbox-ironrouter.js
Created January 7, 2015 23:50
Template and Router to save requests to mapbox using Iron:router
var map, map_canvas;
var MapController = RouteController.extend({
onStop: function() {
if(!map_canvas) {
return;
}
map_canvas.detach();
}
});
@jhohlfeld
jhohlfeld / pom.xml
Last active August 29, 2015 14:05
A jasmin-maven project showing that preloadSource does not work as expected
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>jasmine-project</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>A Jasmine Project</name>
<url>http://github.com/searls/jasmine-maven-plugin</url>
<build>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var Vector = function(x, y) {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var Vector = function(x, y) {
@jhohlfeld
jhohlfeld / service.json
Created August 11, 2014 17:41
simg service json spec
{
"uri": "demo/345ad0f7.jpg",
"size": [3200, 2400],
"delegates": [{
"uri": "demo/image-xsmall.jpg",
"size": [320, 240]
}, {
"uri": "demo/image-small.jpg",
"size": [640, 480]
}, {
@jhohlfeld
jhohlfeld / Spec.js
Last active December 21, 2015 17:18
define(['jquery', 'text!some_template.html'], function($, html) {
// this will not work: window.__html__ will be undefined!
// var html = window.__html__['/base/some_template.html'];
/**
* Test case:
* Let requirejs-text load the assets.
*/
describe('It', function() {