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 hidden or 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
# Converts a changesets.osm file (experimental planet download) into a CSV file. | |
# | |
# Supply filename or stream as parameter | |
# Output is written to changesets.csv (example lines reported to std out) | |
# | |
# To load the result into postgres: | |
# CREATE TABLE changesets (uid BIGINT, created TIMESTAMP, min_lat FLOAT, max_lat FLOAT, min_lon FLOAT, max_lon FLOAT, changes INTEGER); | |
# COPY changesets FROM '/vagrant/changesets.csv' DELIMITER ',' CSV; | |
# | |
# then you can do fun queries like this user ranking |
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 hidden or 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 | |
/** | |
* Converts text copied out of adium IRC, into mediawiki syntax | |
* suitable for pasting into a wiki as minutes of a meeting | |
*/ | |
header('Content-Type: text/html; charset=utf-8'); | |
?> | |
<html> | |
<head> | |
<title>adium IRC to MediaWiki formatting converter</title> |
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 hidden or 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 | |
/* | |
* Plugin Name: Comment URL filter | |
* Description: Block some comments with crappy URLs | |
*/ | |
function filter_handler( $approved , $commentdata ) | |
{ | |
$url = $commentdata['comment_author_url']; |
NewerOlder