I hereby claim:
- I am whym on github.
- I am whym (https://keybase.io/whym) on keybase.
- I have a public key whose fingerprint is 71ED 8B72 5D74 1728 CEEE 9039 4EAE 5013 CC61 F931
To claim this, I am signing this object:
#! /usr/bin/env ruby | |
require 'open-uri' | |
require 'uri' | |
require 'readline' | |
require 'simpleidn' | |
require 'addressable/uri' | |
require 'mechanize' | |
def to_ascii_uri(uri) | |
u = Addressable::URI.parse(uri) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
import sys | |
import oursql | |
import os | |
sys.path.append(os.environ['PWB']) | |
from scripts import interwiki | |
import pywikibot |
Whois gateway https://gist.github.com/whym/3f8ea6fdf345fc457449 |
def format_isodate(x): | |
from datetime import datetime | |
return datetime.strftime(x, '%Y-%m-%dT%H:%M:%SZ') | |
def parse_wikidate(x): | |
from datetime import datetime | |
return datetime.strptime(x, '%Y%m%d%H%M%S') | |
def connect(db): |
diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php | |
index 0f8b255..42dd40e 100644 | |
--- a/includes/specials/SpecialAllpages.php | |
+++ b/includes/specials/SpecialAllpages.php | |
@@ -84,6 +84,7 @@ class SpecialAllpages extends IncludableSpecialPage { | |
$to = $request->getVal( 'to', null ); | |
$namespace = $request->getInt( 'namespace' ); | |
$hideredirects = $request->getBool( 'hideredirects', false ); | |
+ $usesortkey = $request->getBool( 'usesortkey', false ); | |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Full parsing with chart parser: | |
# Given a tokenized input sentence and a set of grammar rules, | |
# parse() generates all possible trees. | |
from collections import defaultdict | |
from Queue import Queue |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# extract shortest pages (for MediaWiki/Wikimedia) | |
import oursql | |
import os | |
import argparse | |
import sys | |
import csv |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import fileinput | |
import sys | |
import json | |
import urllib2 | |
import argparse | |
from datetime import datetime |