Skip to content

Instantly share code, notes, and snippets.

View yohanboniface's full-sized avatar
💭
Set your status

Yohan Boniface yohanboniface

💭
Set your status
View GitHub Profile
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<head>
<title>Input color events test case</title>
</head>
<body>
<input type="color" name="myinput" />
<div id="events"></div>
<script type="text/javascript">
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
SELECT way ,
name ,
amenity ,
shop ,
tourism ,
highway ,
man_made,
access ,
religion,
waterway,
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='./mapbox.js'></script>
<script src='./leaflet.markercluster-src.js'></script>
<link href='./mapbox.css' rel='stylesheet' />
<link href='./MarkerCluster.css' rel='stylesheet' />
<link href='./MarkerCluster.Default.css' rel='stylesheet' />
<!--[if lte IE 8]>
#!/usr/bin/env bash
cd src/download
echo ${PWD}
if test -z "$1"
then
echo "Use ./script/fetch.sh W,S,E,N; ex.: 58,13,59,12"
exit 0
fi
A=$1
@yohanboniface
yohanboniface / gist:3299457
Created August 8, 2012 22:34
Test case for moz-transform strange behaviour in Firefox
<html>
<head>
<title>Test case for moz-transform strange behaviour</title>
<style type="text/css">
#container {
-moz-transform: translate(529px, 258px);
}
</style>
</head>
<body>
L.Marker.include({
geometry: function() {
/* Return a GeoJSON geometry Object */
var latlng = this.getLatLng();
return {
type: "Point",
coordinates: [
latlng.lng,
latlng.lat
]
L.LazyGeoJSON = L.GeoJSON.extend({
initialize: function (geojson_getter, options) {
L.Util.setOptions(this, options);
this._layers = {};
this.geojson_getter = geojson_getter;
this._geojson = null;
},
FlagInstance.objects.add(request.user, content_object,
creator, comment, send_signal=True)
=>
FlagInstance.objects.add(
request.user,
content_object,
creator,
comment,