Skip to content

Instantly share code, notes, and snippets.

View zaltoprofen's full-sized avatar

Borscht zaltoprofen

  • Tokyo, Japan
View GitHub Profile
-----BEGIN PGP MESSAGE-----
hQIMA8i44/33d1aTAQ/+PHD1dYr8j/tWQ/cUlzCd+9VhM6zZvr+lWlsLw6s2hBHY
g7lZTw6OLP2LFZwIha/zPDuNEPyXeY2TXTRhfUhQjqGqWKHnwGSVT3iTh7Ly9R14
//LPGYAhSKd6dbatEixbqqWGneu/d35LNX5PQCiphS72Ry3oGvjZEtIjmafstrOd
U2J3wgvvxBbiqUouxBCoMu0zmvEhE0ItLX0bWScVnP5a/Kl7Yi5NeD7uLNk9y7V1
JdIwc7gJtc6lufxGkTFCcI+EbnYYFAAngUcNcwGNnqqFvCyfurszW9XjTqjwNYQ3
UB9RmOAoAgVuuyCHGyk0zdOjtaHDnn/eie0jISJdzR3pHrM2K7uxA/hdjXWBM7Z4
VoXKNaYe8ef6xGkvJIfpDRWtcTqfwdYris5RsL6wab4JAz6BwYsUI83UgxIIVkRs
pD4xFfjGAcDdL0pshsk5TNOtBA6lJ9j/SXcC9VnS7IkZ3+ikavTrJvEGYSt6cwKf
@zaltoprofen
zaltoprofen / go.mod
Created September 25, 2019 13:58
JUNGO
module github.com/zaltoprofen/jungo
go 1.13
require github.com/stretchr/testify v1.4.0
import os
import re
import time
import cv2
import pandas as pd
import pytesseract
from PIL import Image
package main
import (
"crypto/rand"
"fmt"
"math/big"
)
func main() {
p, _ := rand.Prime(rand.Reader, 256)
@zaltoprofen
zaltoprofen / SMILES.ipynb
Last active September 27, 2018 23:57
IsomericSMILES -> Chem.Mol -> CanonicalSMILES wrong result when `sanitize=True`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
url=new URL(document.URL);q=url.searchParams.get('q');q+=' -site:docs.python.org/2 -site:docs.python.org/ja/2';url.searchParams.set('q',q);window.location=url.toString()
from functools import singledispatch, wraps
class Foo(object):
@singledispatch
def foo(self, arg):
print('called original')
@foo.register(int)
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX vocab: <http://bio2rdf.org/drugbank_vocabulary:>
select distinct ?drug ?name ?SMILES where {
?drug rdf:type vocab:Small-molecule;
dcterms:title ?name;
vocab:calculated-properties ?props
filter regex(?name, 'profen$').
?props rdf:type vocab:SMILES;
vocab:value ?SMILES.
}
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.