Skip to content

Instantly share code, notes, and snippets.

View zaltoprofen's full-sized avatar

nakashima zaltoprofen

  • Tokyo, Japan
View GitHub Profile
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
}
from functools import singledispatch, wraps
class Foo(object):
@singledispatch
def foo(self, arg):
print('called original')
@foo.register(int)
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()
@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.
package main
import (
"crypto/rand"
"fmt"
"math/big"
)
func main() {
p, _ := rand.Prime(rand.Reader, 256)
import os
import re
import time
import cv2
import pandas as pd
import pytesseract
from PIL import Image
@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