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
| ''' | |
| Non-parametric computation of entropy and mutual-information | |
| Adapted by G Varoquaux for code created by R Brette, itself | |
| from several papers (see in the code). | |
| These computations rely on nearest-neighbor statistics | |
| ''' | |
| import numpy as np |
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
| /* curl_multi_test.c | |
| Clemens Gruber, 2013 | |
| <clemens.gruber@pqgruber.com> | |
| Code description: | |
| Requests 4 Web pages via the CURL multi interface | |
| and checks if the HTTP status code is 200. | |
| Update: Fixed! The check for !numfds was the problem. |
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
| ## gb_gpl17000.csv contains the Genbank ids of the cDNA EST transcripts, downloaded from | |
| ## http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GPL17000 | |
| ## (the GB_ACC column) | |
| ## So for each of these accession numbers we download the corresponding page from NCBI (EST database) | |
| ## and search (grep) for the Entrez Gene id | |
| cat gb_gpl17000.csv | | |
| parallel -j4 --tagstring '{}' "curl -s http://www.ncbi.nlm.nih.gov/nucest/{} | fgrep '/sites/entrez?db=gene&cmd=retrieve&list_uids='" | | |
| gawk '{print $1, gensub(/^.*list_uids=([0-9]+).*$/, "\\1", "g", $3)}' | | |
| tee gb_gpl17000_eg_map.txt |
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/sh | |
| wget ftp://ftp.ncbi.nih.gov/repository/UniGene/Homo_sapiens/Hs.data.gz | |
| gunzip Hs.data.gz | |
| <Hs.data awk -v OFS=',' 'BEGIN { print "unigene_id", "gene_id", "symbol", "gb_acc"} | |
| /^ID /{ug=$2} | |
| /^GENE_ID /{eg=$2} | |
| /^GENE /{s=$2} | |
| /^SEQUENCE /{ |
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
| curl -d number=ND582501129GR https://www.elta-courier.gr/track.php | jq '.result|to_entries[].value.result' |
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
| import rx.Observable; | |
| import rx.Observer; | |
| import rx.observables.SyncOnSubscribe; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.Iterator; | |
| import java.util.stream.Stream; |
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
| if (!!root.EventSource) { | |
| /** | |
| * This method wraps an EventSource as an observable sequence. | |
| * @param {String} url The url of the server-side script. | |
| * @param {Observer} [openObserver] An optional observer for the 'open' event for the server side event. | |
| * @returns {Observable} An observable sequence which represents the data from a server-side event. | |
| */ | |
| dom.fromEventSource = function (url, openObserver) { | |
| return new AnonymousObservable(function (observer) { |
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
| server { | |
| # Listen on internal ports only. Do not expose this server directly. | |
| listen 127.0.0.1:80; | |
| listen 10.0.0.1:80; # Secure internal IP | |
| # Hosts | |
| server_name www.wieni.be; | |
| # Root |
Based on https://gist.github.com/dlozeve/ed59bba8bc8cb9b21e2af36cc9766938 :
## install deps outside conda env:
brew install boost expat cgal google-sparsehash cairomm
conda create -n graph
source activate graph
conda install -c conda-forge python boost scipy numpy expat cgal