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
# ma config | |
seen-local-config.php | |
# stockage de mon backup xml | |
tmp/ | |
# mes fichiers exportes | |
seen/ | |
# mes fichiers downloades |
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 python | |
# -*- coding: utf-8 -*- | |
# | |
# adapted from ensim-0.8.4-py2.7.egg/gensim/corpora/wikicorpus.py | |
# | |
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz> | |
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html | |
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/php -q | |
<?php | |
define ('MYSQL_ROOT', 'root'); | |
define ('MYSQL_PASS', 'passwd'); | |
# connexion a la base | |
$conn = mysql_connect('localhost', 'root', 'tapioca'); | |
if (!$conn) die ('erreur connexion DB '.mysql_error()); |
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
<?php | |
## Service Web de conversion d'un SVG (passéen URL) en png | |
## ?url=http://......./svg2png.php?url=(adresse du svg) | |
## renvoie le png converti | |
## TODO : gestion d'entete en cas d'erreur quelconque | |
## utilise : SPIP | |
## utilise : rsvg ou ImageMagick http://seenthis.net/messages/86415 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?php | |
/* is (lon, lat) inside the polygon $p? | |
* use ray casting algorithm (http://en.wikipedia.org/wiki/Point_in_polygon) | |
* ie. project a horizontal line from our point to each segment | |
* code adapted from http://stackoverflow.com/questions/14149099/raycasting-algorithm-with-gps-coordinates | |
*/ | |
function inside_polygon($test_point, $points) { |
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
<?php | |
# seenthis sync: | |
# export | |
define('_DIR_EXPORT', 'export/'); | |
# import |
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
/* | |
* Newton's method for finding roots | |
* | |
* code adapted from D.V. Fedorov, | |
* “Introduction to Numerical Methods with examples in Javascript” | |
* http://owww.phys.au.dk/~fedorov/nucltheo/Numeric/11/book.pdf | |
* (licensed under the GPL) | |
* by Philippe Riviere <philippe.riviere@illisible.net> March 2014 | |
* modified for compatibility with Chrome/Safari | |
* added a max iterations parameter |
OlderNewer