Skip to content

Instantly share code, notes, and snippets.

View jieter's full-sized avatar

Jan Pieter Waagmeester jieter

View GitHub Profile
@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 / 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
/*
* 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();
<html>
<head>
<style>
h1 {
width: 404px;
margin: 10px auto;
clear: both;
}
.container {
/*
* L.PolylineUtil contains utilify functions for polylines, two methods
* are added to the L.Polyline object to support creation of polylines
* from an encoded string and converting existing polylines to an
* encoded string.
*
* - L.Polyline.fromEncoded(encoded [, options]) returns a L.Polyline
* - L.Polyline.encodePath() returns a string
*
* Actual code from:
/*
* L.PolylineUtil contains utilify functions for polylines, two methods
* are added to the L.Polyline object to support creation of polylines
* from an encoded string and converting existing polylines to an
* encoded string.
*
* - L.Polyline.fromEncoded(encoded [, options]) returns a L.Polyline
* - L.Polyline.encodePath() returns a string
*
* Actual code from:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="http://openlayers.org/dev/theme/default/style.css" type="text/css">
<link rel="stylesheet" href="http://openlayers.org/dev/examples/style.css" type="text/css">
<script src="http://openlayers.org/dev/OpenLayers.js"></script>
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?libraries=geometry&amp;sensor=false"></script>
<style type="text/css">
#map {width:670px; height:600px;}
</style>
<script type='text/javascript'>
function initialize() {
var center = new google.maps.LatLng(51.42162000000001, -2.69789999999999);
<html>
<head>
<style>
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
h1 {
width: 404px;
<html>
<head>
<style>
.center, .inner {
min-height: 400px;
}
.center{
margin: 0px auto;
width: 400px;
border: 1px solid red;