I hereby claim:
- I am toniher on github.
- I am toniher (https://keybase.io/toniher) on keybase.
- I have a public key whose fingerprint is A3B2 B108 0990 FB04 454E F32E BB7E 8E7B 8D1C C5BE
To claim this, I am signing this object:
# Python script for importing old ratings MediaWiki extension http://www.mediawiki.org/wiki/Extension:AjaxRatingScript | |
# into a dump for more suitable new extension http://www.mediawiki.org/wiki/Extension:VoteNY | |
# Using LP_solve Python wrapper | |
from lpsolve55 import * | |
import MySQLdb | |
def main(): | |
host = "localhost" |
/** Make filename readonly, so filename is either the default one defined in the form or the filename in your drive **/ | |
$("#mw-upload-form #wpDestFile").attr('readonly', true); | |
/** Keep file extension in upload. Default filename is changed according the filename extension uploaded **/ | |
$("input:file").change(function (){ | |
var filename = $('input[type=file]').val().replace(/C:\\fakepath\\/i, ''); | |
var extension = filename.substr( (filename.lastIndexOf('.') +1) ); | |
var subs = "."+extension; | |
var filenamef = $("#wpDestFile").val(); | |
var extensionf = filenamef.substr( (filenamef.lastIndexOf('.') +1) ); |
#!/usr/bin/env perl -w | |
use MediaWiki::Bot; | |
use LWP::Simple qw(get); | |
use JSON qw(from_json); | |
use URI::Escape; | |
use Data::Dumper; | |
use utf8; | |
binmode STDOUT, ":utf8"; |
<?xml version='1.0' encoding="ISO-8859-1" ?> | |
<!-- | |
XSLT 1.0 Stylesheet for converting NCBI PSIBLAST XML into JSON with different string params as input | |
Usage: xsltproc psiblast.xsl output.xml > output.json | |
Toni Hermoso Pulido @toniher, 2014 - GPLv 3 or later | |
Reference http://plindenbaum.blogspot.com.es/2008/05/ncbi-blast-xslt-xhtml-svg.html | |
--> | |
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0' > | |
<xsl:output method="text" /> |
Rcode Name RGB HTML | |
1 white 255,255,255 #FFFFFF | |
2 aliceblue 240,248,255 #F0F8FF | |
3 antiquewhite 250,235,215 #FAEBD7 | |
4 antiquewhite1 255,239,219 #FFEFDB | |
5 antiquewhite2 238,223,204 #EEDFCC | |
6 antiquewhite3 205,192,176 #CDC0B0 | |
7 antiquewhite4 139,131,120 #8B8378 | |
8 aquamarine 127,255,212 #7FFFD4 | |
9 aquamarine1 127,255,212 #7FFFD4 |
Verifying that +toniher is my Bitcoin username. You can send me #bitcoin here: https://onename.io/toniher |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: YOUR_NAME_HERE | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start/stop the forever nodejs application. Requires chpst | |
### END INIT INFO |
#!/bin/bash | |
mkdir -p /tmp/hls | |
on_die () { | |
# kill all children | |
pkill -KILL -P $$ | |
} | |
trap 'on_die' TERM |
#!/usr/bin/env python | |
from py2neo import neo4j | |
import sys | |
import logging | |
import argparse | |
from inspect import getmembers | |
from pprint import pprint | |
parser = argparse.ArgumentParser() | |
parser.add_argument("acc1", |
I hereby claim:
To claim this, I am signing this object: