Skip to content

Instantly share code, notes, and snippets.

@lindenb
lindenb / bio-anchor.html
Created August 28, 2023 16:20
A first test with WebComponent, extending HTMLElement javascript bioinformatics
<html>
<head>
</head>
<body>
<bio-anchor build="hg38">rs25</bio-anchor> and
<bio-anchor build="hg38">ENSG00000005108</bio-anchor>
<bio-anchor build="hg38">chr1:1234-1235</bio-anchor>
<bio-anchor build="hg38">xxx</bio-anchor>
</body>
@zaius
zaius / background.sh
Created January 16, 2011 23:29
How to redirect a running process output to a file and log out
ctrl-z
bg
touch /tmp/stdout
touch /tmp/stderr
gdb -p $!
# In GDB
p dup2(open("/tmp/stdout", 1), 1)
p dup2(open("/tmp/stderr", 1), 2)