I hereby claim:
- I am matthieucan on github.
- I am matthieu (https://keybase.io/matthieu) on keybase.
- I have a public key whose fingerprint is 721D 82EF 4102 FBEE 4EC0 164F 83E7 EA66 9A19 CB94
To claim this, I am signing this object:
#!/bin/bash | |
# Copyright 2019 Matthieu Caneill | |
# Licensed unter WTFPL <http://www.wtfpl.net/txt/copying/> | |
# Plots python source lines of code (as counted by sloccount) and PEP8 | |
# warnings (as reported by flake8) over time. | |
# It is meant to be used in a git repository. | |
# Usage: |
var OSMLayer = new OpenLayers.Layer.OSM('OSM Map', null, { | |
eventListeners: { | |
tileloaded: function(evt) { | |
var ctx = evt.tile.getCanvasContext(); | |
if (ctx) { | |
var imgd = ctx.getImageData(0, 0, evt.tile.size.w, evt.tile.size.h); | |
var pix = imgd.data; | |
for (var i = 0, n = pix.length; i < n; i += 4) { | |
if (pix[i] == 181 && pix[i+1] == 208 && pix[i+2] == 20 |
#!/bin/bash | |
#This is the sfl-shinken-plugins directory | |
DIR=$(pwd) | |
# prevents grep from adding line numbers, etc | |
export GREP_OPTIONS="" | |
version=$(date +%Y.%m.%e.%H.%M) |
{% load foo_tags %} | |
<style type="text/css"> | |
/* this is done to prevent a conflict with bootstrap */ | |
#mapOpenLayers img { max-width: none; } | |
</style> | |
<div id="mapOpenLayers" style="height: 600px;"></div> | |
<script src="{% url media path="external/openlayers/lib/OpenLayers.js" %}"></script> | |
<script> |
# Copyright 2014 Matthieu Caneill | |
# Consider this equivalent to public domain, feel free to use it the way you want. | |
# pip install python-geoip | |
# pip install python-geoip-geolite2 | |
import socket | |
from geoip import geolite2 | |
@register.filter("locateip") |
I hereby claim:
To claim this, I am signing this object: