Skip to content

Instantly share code, notes, and snippets.

View jieter's full-sized avatar

Jan Pieter Waagmeester jieter

View GitHub Profile
<html>
<head>
<style>
h1 {
width: 404px;
margin: 10px auto;
clear: both;
}
.container {
/*
* Extends L.Map to synchronize the interaction on one map to one or more other maps.
*/
(function () {
'use strict';
L.Map = L.Map.extend({
sync: function (map, options) {
this._initSync();
@jieter
jieter / t962a-pid-control-test.log
Created January 5, 2015 13:23
T-962A test profiles.
# Time, Temp0, Temp1, Temp2, Temp3, Set,Actual, Heat, Fan, ColdJ, Mode
0.0, 50.9, 56.2, 0.0, 0.0, 171, 53.5, 0, 255, 35.5, REFLOW
0.2, 50.8, 56.1, 0.0, 0.0, 171, 53.4, 255, 7, 35.5, REFLOW
0.5, 50.8, 56.2, 0.0, 0.0, 171, 53.5, 255, 7, 35.5, REFLOW
0.8, 50.6, 56.2, 0.0, 0.0, 171, 53.4, 255, 7, 35.5, REFLOW
1.0, 50.5, 55.9, 0.0, 0.0, 171, 53.2, 255, 7, 35.5, REFLOW
1.2, 50.6, 55.9, 0.0, 0.0, 171, 53.2, 255, 7, 35.5, REFLOW
1.5, 50.4, 55.8, 0.0, 0.0, 171, 53.1, 255, 7, 35.5, REFLOW
1.8, 50.4, 55.8, 0.0, 0.0, 171, 53.1, 255, 7, 35.5, REFLOW
2.0, 50.4, 55.8, 0.0, 0.0, 171, 53.1, 255, 7, 35.5, REFLOW
@jieter
jieter / index-https.html
Last active August 29, 2015 14:16
leaflet-providers: Test for https support
<!doctype html>
<html lang="en">
<head>
<title>Leaflet Provider Demo</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
@jieter
jieter / compress.py
Created May 20, 2015 17:43
Experiment using browserify with django-compressor
import logging
import subprocess
from compressor.exceptions import FilterError
from compressor.filters import CompilerFilter
from django.conf import settings
logger = logging.getLogger("coconut.helpers.compressor")
@jieter
jieter / dump_all.yml
Created October 22, 2015 13:07
Ansible snippets
- name: Display all variables/facts known for a host
debug: var=hostvars[inventory_hostname]
@jieter
jieter / gist:e0c2f577fe3c685edd04
Created January 13, 2016 09:09
running django-tables2 tests
jieter@zimri:~/tmp$ mkvirtualenv dt2-test
New python executable in dt2-test/bin/python
Installing setuptools, pip, wheel...done.
(dt2-test)jieter@zimri:~/tmp$ git clone [email protected]:bradleyayers/django-tables2.git
Cloning into 'django-tables2'...
remote: Counting objects: 3633, done.
remote: Compressing objects: 100% (172/172), done.
remote: Total 3633 (delta 90), reused 0 (delta 0), pack-reused 3459
Receiving objects: 100% (3633/3633), 1.40 MiB | 849.00 KiB/s, done.
Resolving deltas: 100% (1780/1780), done.
@jieter
jieter / console.log
Created January 19, 2016 12:50
leaflet-headless npm install
jieter@zimri:~/workspace/_npm/leaflet-headless (master)$ npm install
npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.37","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.37","npm":"1.4.28"})
npm WARN deprecated [email protected]: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
> [email protected] install /home/jieter/workspace/_npm/leaflet-headless/node_modules/canvas
> node-gyp rebuild
make: Entering directory '/home/jieter/workspace/_npm/leaflet-headless/node_modules/canvas/build'
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet Spec Runner</title>
<link rel="stylesheet" type="text/css" href="../node_modules/mocha/mocha.css">
<link rel="stylesheet" type="text/css" href="../dist/leaflet.css">
</head>
<body>
<div id="mocha"></div>
@jieter
jieter / gist:0d36e3edb5f83c104278
Created March 3, 2016 15:43
wkhtml HEAD build.py for vivid
'vivid': {
'title' : 'Ubuntu Vivid',
'packaging_tool' : 'apt',
'build_arch' : ['amd64', 'i386'],
'compression' : 'xz',
'runtime_packages' : 'libc6 libstdc++6 zlib1g libpng12-0 libjpeg-turbo8 '\
'libssl1.0.0 libfreetype6 libicu52 fontconfig '\
'libx11-6 libxext6 libxrender1 libxcb1 xfonts-base xfonts-75dpi',
'build_packages' : 'xz-utils ruby python perl gperf bison flex git '\
'zlib1g-dev libpng12-dev libjpeg-turbo8-dev libssl-dev libfreetype6-dev libicu-dev libfontconfig1-dev '\