This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing d3.js in Leaflet.js</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" /> | |
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<style type="text/css"> | |
svg , g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from elasticsearch import Elasticsearch, TransportError | |
import json | |
client = Elasticsearch() | |
try: | |
client.search(body={'foo': 'bar'}) | |
except TransportError as ex: | |
print(ex.error) | |
print(json.dumps(ex.info, indent=2)) | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from preproc.pipeline import Pipeline | |
from preproc.pipeline.heplers import extract_supplementary_files, match_samples_in_dir | |
from ...task import TaskDescription | |
from os.path import join, basename | |
from rpy2.robjects import packages as rpackages | |
import numpy as np | |
import pandas as pd | |
import re | |
from glob import glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checknotnull(item, notnullfields): | |
if not all(f in item for f in notnullfields): | |
raise Exception(item) | |
return item |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_name = '/path/to/file' | |
pubchem_ids = [] | |
# reading all pubchem ids | |
with open(file_name) as f: | |
for line in f: | |
# removing endline symbols | |
line = line.rstrip('\n') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-word-synonyms.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.google.ru/search?es_sm=91&q=term+search+relevance+word+distance&oq=term+search+relevance+word+distance&gs_l=serp.3...16210.18208.0.18558.14.9.0.0.0.0.127.127.0j1.1.0....0...1c.1.64.serp..14.0.0.hFDzymCGgTQ | |
https://en.wikipedia.org/wiki/Proximity_search_(text) | |
http://docs.clusterpoint.com/wiki/Relevance_ranking | |
https://docs.marklogic.com/guide/search-dev/relevance | |
https://www.elastic.co/guide/en/elasticsearch/guide/current/scoring-theory.html | |
http://jaganadhg.freeflux.net/blog/archive/2010/10/16/wordnet-sense-similarity-with-nltk-some-basics.html | |
http://www.cs.duke.edu/courses/spring14/compsci290/assignments/lab02.html | |
http://sujitpal.blogspot.ru/2014/12/semantic-similarity-for-short-sentences.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_access allow all | |
http_port 80 | |
forwarded_for off | |
via off | |
request_header_access Via deny all | |
request_header_access Proxy deny all | |
request_header_access X-Forwarded-For deny all | |
coredump_dir /var/spool/squid3 | |
request_header_access Allow allow all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE gsm | |
( ID REAL, | |
title TEXT, | |
gsm TEXT, | |
series_id TEXT, | |
gpl TEXT, | |
status TEXT, | |
submission_date TEXT, | |
last_update_date TEXT, | |
type TEXT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmpfile=$(mktemp -t rboostrap) | |
cat > $tmpfile << EOF | |
install.packages(c('ggplot2', 'data.table', 'reshape2', 'stringr', 'doParallel'), repos=c('http://cran.gis-lab.info/')) | |
source("http://bioconductor.org/biocLite.R") | |
biocLite("qvalue") | |
EOF | |
Rscript $tmpfile |