Skip to content

Instantly share code, notes, and snippets.

View psbrandt's full-sized avatar
🐺
👨🏻‍💻

Pascal Brandt psbrandt

🐺
👨🏻‍💻
View GitHub Profile
<html>
<head>
<title>Chart.js</title>
</head>
<body>
<div style="width: 50%">
<canvas id="myChart"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
https://gist.githubusercontent.com/psbrandt/82ec94ef33dcc3201d40302b27d8e19f/raw/3895d24f2c1cb184bec23e42e0a84decb848861e/gistfile1.txt
<html>
<head>
<title>Chart.js</title>
</head>
<body>
<div style="width: 50%">
<canvas id="myChart"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<img src="https://simpleicons.org/icons/kubernetes.svg" style="background-color: rgb(50, 108, 229); color: rgb(255, 255, 255);">
@psbrandt
psbrandt / understanding-word-vectors.ipynb
Created March 2, 2018 19:31 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psbrandt
psbrandt / introrx.md
Created February 2, 2018 06:02 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@psbrandt
psbrandt / ancestry_q2.ds
Last active January 31, 2018 18:48
Ancestry Q2 CSE 544 Homework 2
group: Ancestry - person_living, male, female, parent_child
description: CSE 544 homework 2 part 2
person_living = {
p
"adam"
"betty"
"charles"
"diana"
@psbrandt
psbrandt / parent_child.ra
Last active January 31, 2018 04:13
Parent Child Dataset, UW CSE 544 Homework 2 part 1
group: Ancestry - person_living, parent_child
description: CSE 544 homework 2 part 1
person_living = {
x
1
4
5
8
Gene 1 Gene 2 Weight Network group Network
IL18R1 IL12RB1 0.0129713705 Co-expression Ramaswamy-Golub-2001
IRF5 EBI3 0.0069288113 Co-expression Ramaswamy-Golub-2001
IL4 IL12B 0.03132144 Co-expression Mallon-McKay-2013
IL18RAP IL12B 0.01599058 Co-expression Bild-Nevins-2006 B
EBI3 IL12A 0.006059564 Co-expression Dobbin-Giordano-2005
IL27RA IL12RB2 0.02434439 Co-expression Dobbin-Giordano-2005
NFKB2 IL12A 0.017736677 Co-expression Dobbin-Giordano-2005
IL18R1 IL18RAP 0.023213755 Co-expression Bahr-Bowler-2013
IL18R1 IL12RB2 0.005018834 Co-expression Rieger-Chu-2004
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: ./clean-database-dump.sh <INPUT_FILENAME> <OUTPUT_FILENAME>"
exit 1
fi
input=$1
output=$2