Skip to content

Instantly share code, notes, and snippets.

unzip -p build/outputs/apk/app-debug.apk classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' 57861
@tobiasrohloff
tobiasrohloff / recallPrecision.py
Last active August 29, 2015 14:27 — forked from joernhees/recallPrecision.py
plot recall precision diagrams with f-measure height lines
# -*- coding: utf-8 -*-
"""
Script to plot recall-precision values with f-measure equi-potential lines.
Created on Dec 16, 2009
@author: Jörn Hees
"""
import scipy as sc
/**
* Disables the SSL certificate checking for new instances of {@link HttpsURLConnection} This has been created to
* aid testing on a local box, not for use on production.
*/
private static void disableSSLCertificateChecking() {
TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {
return null;
}
@tobiasrohloff
tobiasrohloff / get_label.go
Last active October 5, 2023 05:28
Wikidata API: Get Label for Item ID
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
)
@tobiasrohloff
tobiasrohloff / xmlrpc-server.py
Last active January 3, 2016 00:59
simple xmlrpc-server example with python
from SimpleXMLRPCServer import SimpleXMLRPCServer
def add(x, y):
return x + y
srv = SimpleXMLRPCServer(("localhost", 5080))
srv.register_function(add)
srv.serve_forever()