A node-link diagram running a javascript implementation of the Dijkstra algorithm. Every time the visualization is refreshed two nodes are selected as start (in red) and end point (in blue). Then the shortest path is computed and shown on the diagram by highlighting the edges.
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
var lastFlushed = undefined; | |
function floodScheduler(n) { | |
for (var i = 0; i < 10; i++) { | |
for (var j = 0; j < n; j++) { | |
var fn = function logPos(i, j) { | |
var thisFlush = (i * n) + j; | |
if (lastFlushed || lastFlushed === 0) { | |
if (lastFlushed + 1 !== thisFlush) { | |
console.error('Order MisMatch', lastFlushed, thisFlush, i, j); |
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
fmtDetailValue_Dbxref : function(dbxref) { | |
if (typeof dbxref != 'string') { | |
return dbxref; | |
} | |
var dbid = dbxref.split(':'); | |
var prefix = ''; | |
switch (dbid[0]) { | |
case 'InterPro': | |
prefix = 'http://www.ebi.ac.uk/interpro/entry/'; | |
break; |
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
export NEO4J_HOME=${NEO4J_HOME-~/Downloads/neo4j-community-3.0.1} | |
if [ ! -f data-csv.zip ]; then | |
curl -OL https://cloudfront-files-1.publicintegrity.org/offshoreleaks/data-csv.zip | |
fi | |
export DATA=${PWD}/import | |
rm -rf $DATA |
Source | Dst. file type | Protocol | Time (s) | Command Line |
---|---|---|---|---|
NCBI | .sra | ftp | 296 | wget |
NCBI | .fastq.gz | sra toolkit | ~23000 | fastq-dump -Z --gzip --split-spot |
local file | sra=>fastq.gz | sra toolkit | ~15000 | fastq-dump --gzip --split-spot --split-3 |
EBI | .fastq.gz | aspera | 513+492 | aspera -QT -l 300m |
EBI | .fastq.gz | ftp | 1876+1946 | wget |
Notes:
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 | |
less_command='| less $less_no_init -aiF -Ps"Manual page\: $man_page (?ltline %lt?L/%L.:byte %bB?s/%s..? (END):?pB %pB\%..)"' | |
# Get section | |
if [[ $1 =~ [0-9]+ ]] | |
then | |
section=$1 | |
shift | |
fi |
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 | |
export PATH='/usr/local/bin:$PATH' | |
ansiweather -a off -l 'San Francisco' \ | |
| cut -d '>' -f 2 \ | |
| cut -d '-' -f1 \ | |
| awk '{ print $1 $2 }' \ | |
| tr -d 'C' |
- CoffeeScript Unfancy JavaScript
- CoffeeScript II: The Wrath of Khan Rewrite of the CS compiler
- Coco A CoffeeScript dialect that aims to be more radical and practical, also acts as a test bed for features that get imported in CoffeeScript.
- LiveScript is a fork of Coco that is much more compatible with CoffeeScript, more functional, and with more features.
- IcedCoffeeScript A CoffeeScript dialect that adds support for
await
anddefer
keywords which simplify async control flow.