This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Rubriques papier : | |
2011-08-15 17:23:31 CEST LOG: duration: 9284.827 ms statement: | |
SELECT "libe_contentmodel".* FROM "libe_contentmodel" | |
INNER JOIN "libe_contenttosection" ON ("libe_contentmodel"."id" = "libe_contenttosection"."content_model_id") | |
WHERE ("libe_contenttosection"."section_id" = 69 AND "libe_contentmodel"."workflow_state" = 20 ) | |
ORDER BY "libe_contentmodel"."computed_ponderation" DESC, "libe_contentmodel"."updating_date" DESC LIMIT 4 | |
** pour savoir si un objet fait partie d'un dossier | |
2011-08-15 17:23:32 CEST LOG: duration: 1136.757 ms statement: | |
SELECT "libe_section".* FROM "libe_section" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FlagInstance.objects.add(request.user, content_object, | |
creator, comment, send_signal=True) | |
=> | |
FlagInstance.objects.add( | |
request.user, | |
content_object, | |
creator, | |
comment, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L.Marker.include({ | |
geometry: function() { | |
/* Return a GeoJSON geometry Object */ | |
var latlng = this.getLatLng(); | |
return { | |
type: "Point", | |
coordinates: [ | |
latlng.lng, | |
latlng.lat | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Test case for moz-transform strange behaviour</title> | |
<style type="text/css"> | |
#container { | |
-moz-transform: translate(529px, 258px); | |
} | |
</style> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT way , | |
name , | |
amenity , | |
shop , | |
tourism , | |
highway , | |
man_made, | |
access , | |
religion, | |
waterway, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "FeatureCollection", | |
"features": [ | |
{ | |
"type": "Feature", | |
"geometry": { | |
"type": "Polygon", | |
"coordinates": [ | |
[ | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
OlderNewer