Skip to content

Instantly share code, notes, and snippets.

@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 / phpcs.xml
Created December 8, 2015 19:57
PHP_CodeSniffer pour SPIP
<?xml version="1.0"?>
<ruleset name="SPIP">
<!--
Liens utiles
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
https://github.com/ucfcdl/fuelphp-phpcs/tree/master/Standards/FuelPHP
https://github.com/vanilla/addons/tree/master/standards/Vanilla
-->
<description>Coding rules for SPIP</description>
@brunob
brunob / .block
Last active February 1, 2017 22:34
Quotas départementaux grands cormorans
license: mit
border: none
height: 600
@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 / cleanrss.html
Last active February 8, 2017 18:07
Un squelette SPIP qui prend l'url d'un flux RSS non valide en paramètre pour renvoyer le flux au propre. Pratique pour syndiquer certains flux WordPress (odgprod par exemple) dans Nextcoud. https://seenthis.net/messages/568088
#CACHE{0}
[(#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/"
>
[(#SET{channel,#ENV{url}|analyser_site})]
<channel[ xml:lang="(#LANG)"]>
[<title>(#GET{channel}|table_valeur{nom_site}|textebrut|texte_backend)</title>]
@brunob
brunob / Fireworks.desktop
Last active February 17, 2017 12:17
Ubuntu launcher for Fireworks using wine / handling open with for jpeg and png files :)
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=env XMODIFIERS='' sh -c "winepath -w -0 %F | xargs -0 wine '/home/bb/.wine/drive_c/Program Files/Macromedia/Fireworks 8/Fireworks.exe'"
MimeType=image/png;image/jpeg;image/gif;
Name=Fireworks
Icon=/home/bb/.wine/drive_c/Program Files/Macromedia/Fireworks 8/FW9.png
@brunob
brunob / .block
Last active February 24, 2017 17:33
Quotas départementaux grands cormorans & couloirs de migration
license: mit
border: none
height: 630
@brunob
brunob / snapcraft.yaml
Last active May 17, 2018 15:35
Timeline snap
name: timeline # you probably want to 'snapcraft register <name>'
version: '1.17.0'
summary: Timeline
description: |
Timeline is a cross-platform application for displaying and navigating events on a timeline
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps: