Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

TC tcgriffith

🎯
Focusing
View GitHub Profile
@tcgriffith
tcgriffith / wiki_retrieve_owaraigeinin.Rmd
Created Oct 18, 2019
use wiki api to retrieve all pages under certain categories.
View wiki_retrieve_owaraigeinin.Rmd
---
title: "Untitled"
author: "TC"
date: "10/18/2019"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
View gist:fe5c9d6cd442e3e7f4e74a5e5a50d915
>4rzd_A.pdb.mapping.bak -- ss predicted by dssr
GAGCAACUUAGGAUUUUAGGCUCCCCGGCGUGUCUCGAACCAUGCCGGGCCAAACCCAUAGGGCUGGCGGUCCCUGUGCGGUCAAAAUUCAUCCGCCGGAG
<<<<......((((((...>>>>(((((((((........)))))))))....((((((((((........))))))).)))..))))))...........
>4RZD_A SPOT-RNA output
GAGCAACUUAGGAUUUUAGGCUCCCCGGCGUGUCUCGAACCAUGCCGGGCCAAACCCAUAGGGCUGGCGGUCCCUGUGCGGUCAAAAUUCAUCCGCCGGAG
<<<<.......(((((...>>>>(((((((((........)))))))))....((((((((((........))))))).)))..)))))............
>4RZD:A|PDBID|CHAIN|SEQUENCE
GAGCAACUUAGGAUUUUAGGCUCCCCGGCGUGUCUCGAACCAUGCCGGGCCAAACCCAUAGGGCUGGCGGUCCCUGUGCGGUCAAAAUUCAUCCGCCGGAG
((((...............)))).((((((((........))))))))((((..((....))..)))).....(((.((((...........))))))).. (-35.20)
View cth.md
cth = function(x){
  y = (exp(x) + exp(-x))/(exp(x) - exp(-x))
}

x = seq(-5,5,0.1)
y = cth(x)

plot(x,y)
View gist:b148e324383957acb124623e1d3f2d72
``` r
cth = function(x){
y = (exp(x) + exp(-x))/(exp(x) - exp(-x))
}
x = seq(-5,5,0.1)
y = cth(x)
plot(x,y)
```
View style.css
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */
img, legend {
border: 0
}
*, .fa {
-webkit-font-smoothing: antialiased
}
.fa-ul>li, sub, sup {
position: relative
View gist:1317473539c0cc353dc0ac2f2c754728
---
## Goal
---
## Dataset
- missense
- 240 driver : recurrence >5
- 240 passenger: recurrence =1 within the same genes having recurrent mutations
View test.tsv
CATE bedrooms halls AREA floor subway school price LONG LAT NAME DISTRICT
chaoyang 1 0 46.06 middle 1 0 4.885 116.4596527 39.92834651 10AM新坐标 方庄
chaoyang 1 1 59.09 middle 1 0 4.654 116.4596527 39.92834651 10AM新坐标 方庄
haidian 5 2 278.95 high 1 1 7.1662 116.3035556 39.95480697 10号名邸 紫竹桥
haidian 3 2 207 high 1 1 5.7972 116.3035556 39.95480697 10号名邸 紫竹桥
fengtai 2 1 53.32 low 1 1 7.1268 116.4188263 39.94381285 17号旁门 蒲黄榆
fengtai 2 1 58 low 1 1 7.069 116.4188263 39.94381285 17号旁门 蒲黄榆
haidian 2 1 55.8 low 1 1 5.7348 116.3331261 40.03770842 621小区 清河
haidian 2 1 58.9 middle 1 1 5.5179 116.3331261 40.03770842 621小区 清河
haidian 2 1 66.9 middle 1 1 4.5591 116.3331261 40.03770842 621小区 清河
View scr2gif.sh
#!/bin/bash
# http://tc.rbind.io/post/2017/10/20/create-a-gif-screencast-a-bash-script/
# require slop, ffmpeg, imageMagick
read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i")
TMP_AVI=$(mktemp /tmp/outXXXXXXXXXX.avi)
ffmpeg -s "$W"x"$H" -y -f x11grab -i :0.0+$X,$Y -vcodec huffyuv -r 25 $TMP_AVI \
&& convert -set delay 5 -layers Optimize $TMP_AVI ./out.gif
View gist:1562dd125525aecec65ad016bc713310
Netlify is managing owaraiclub.com
Go to your domain registrar and point your domain to the following nameservers:
dns1.p08.nsone.net
dns2.p08.nsone.net
dns3.p08.nsone.net
dns4.p08.nsone.net
These nameservers are valid only for owaraiclub.com. They may not work if you use them for a different domain.
git clone --recursive https://github.com/tcgriffith/owaraisite
View gist:2599838c0b586620d33e077ccb908514
https://docs.google.com/presentation/d/e/2PACX-1vRkg3mcWxHu5ZEoeeW7XUOKTMG4yc9X5PHsy050bWHLMfz64y4NdU_92W1lJrjZyvgwSlmZtUq7EGzR/pub?start=false&loop=false&delayms=3000
You can’t perform that action at this time.