Skip to content

Instantly share code, notes, and snippets.

From 33fa68e80e0fd55241d0d515023a611dd3410129 Mon Sep 17 00:00:00 2001
From: brunob <brunobergot@gmail.com>
Date: Mon, 14 Nov 2011 00:04:44 +0100
Subject: [PATCH 2/3] done : add openBubble and closeBubble to openlayers api
---
source/mxn.openlayers.core.js | 59 ++++++++++++++++++-----------------------
1 files changed, 26 insertions(+), 33 deletions(-)
diff --git a/source/mxn.openlayers.core.js b/source/mxn.openlayers.core.js
@brunob
brunob / tilestache.cfg
Created April 23, 2012 15:17
tilestache config file
{
"cache":
{
"name": "Disk",
"path": "/tmp/stache",
"umask": "0000"
},
"layers":
{
"osm":
@brunob
brunob / TileLayer.TileJSON.js
Created April 24, 2012 13:10 — forked from DGuidi/TileLayer.TileJSON.js
Leaflet TileCanvas
L.TileLayer.TileJSON = L.TileLayer.Canvas.extend({
options: {
debug: false
},
tileSize: 256,
initialize: function (options) {
L.Util.setOptions(this, options);
@brunob
brunob / __init__.py
Created May 15, 2012 09:34
tilestache debug
""" Provider that returns vector representation of features in a data source.
This is a provider that does not return an image, but rather queries
a data source for raw features and replies with a vector representation
such as GeoJSON. For example, it's possible to retrieve data for
locations of OpenStreetMap points of interest or street centerlines
contained within a tile's boundary.
Many Polymaps (http://polymaps.org) examples use GeoJSON vector data tiles,
which can be effectively created using this provider.
@brunob
brunob / index.html
Created September 22, 2012 09:20 — forked from ZJONSSON/index.html
testing circles in Leaflet.js (working)
<!DOCTYPE html>
<html>
<head>
<title>Testing d3.js in Leaflet.js</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.css"></link>
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"></script>
<style type="text/css">
svg , g
@brunob
brunob / lpggl.html
Last active December 23, 2015 14:39
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Leaflet-plugins Google Tile</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
@brunob
brunob / scoopit.html
Last active February 8, 2017 17:30
Un squelette SPIP qui prend l'url d'un flux RSS issu de scoopit en paramètre pour renvoyer le flux dans lequel les liens sont remplacés par les liens direct vers les ressources, cf http://seenthis.net/messages/202408
[(#HTTP_HEADER{Content-type: text/xml[; charset=(#CHARSET)]})]<?xml
version="1.0"[ encoding="(#CHARSET)"]?>
<rss version="2.0" [(#REM) rss 2.0.9)]
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
>
<channel[ xml:lang="(#LANG)"]><BOUCLE_channel(DATA){source xml, #ENV{url}}{datapath channel}>
[<title>(#VALEUR{title/0}|textebrut|texte_backend)</title>]
[<link>(#VALEUR{link/0})</link>]
[<description>(#VALEUR{description/0}|supprimer_tags|texte_backend))</description>]
@brunob
brunob / main.py
Last active August 29, 2015 14:00
quolibet/browsers/coverlist
# -*- coding: utf-8 -*-
# Copyright 2004-2007 Joe Wreschnig, Michael Urman, Iñigo Serna
# 2009-2010 Steven Robertson
# 2012-2013 Nick Boultbee
# 2009-2014 Christoph Reiter
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
@brunob
brunob / prettycss.conf
Last active April 26, 2019 08:42
Personal config file for PrettyCSS https://github.com/fidian/PrettyCSS/
{
"cssLevel": 3,
"autocorrect": "",
"propertiesLowerCase": "",
"valuesLowerCase": "",
"at_pre": "",
"at_whitespace": " ",
"at_post": "\n",
"atblock_pre": " {\n\t",
"atblock_post": "\r}",
#
# https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
# based on the RSnake original http://ha.ckers.org/xss.html
# Retrieved on 2013-11-20
# Much of this wildly obsolete
#
# XSS Locator 2
'';!--"<XSS>=&{()}