Skip to content

Instantly share code, notes, and snippets.

@yulijia
yulijia / down.txt
Created February 9, 2021 13:11
Bioinformatics Analysis on expression data
Category Term Count PValue
GO_MF GO:0030165~PDZ domain binding 5 0.003597602
GO_CC GO:0005576~extracellular region 23 0.003966517
GO_CC GO:0016021~integral component of membrane 53 0.007762346
GO_BP GO:2000820~negative regulation of transcription from RNA polymerase II promoter involved in smooth muscle cell differentiation 2 0.015069497
GO_BP GO:0036304~umbilical cord morphogenesis 2 0.015069497
GO_BP GO:0035987~endodermal cell differentiation 3 0.017605976
GO_BP GO:0060412~ventricular septum morphogenesis 3 0.020166114
GO_BP GO:0048008~platelet-derived growth factor receptor signaling pathway 3 0.020166114
GO_CC GO:0009986~cell surface 10 0.020464569
old.packages <- list.files("/R/x86_64-redhat-linux-gnu-library/3.3")
source("https://bioconductor.org/biocLite.R")
# Install packages in the previous version.
# For each package p in previous version...
for (p in old.packages[!grepl("LOCK",old.packages)]) {
# ... Only if p is not already installed
if (!(p %in% installed.packages()[,"Package"])) {
# Install p
# print(p)
@yulijia
yulijia / change_slug.sh
Last active June 8, 2017 03:24
move animation inst example to website yihui.name/animation
#!/bin/bash
for i in /Users/lijia/yihui/content/animation/example/*.Rmd
do
bn=`basename $i`
cat $i | sed '/^slug:/s/\./-/' > $bn
done
@yulijia
yulijia / CB2BioComp_notebook.md
Last active February 23, 2017 00:39
CB2 BioComp note

revisited

R

google n-gram

donot do

python

@yulijia
yulijia / .git-commit-blog.txt
Last active August 6, 2020 14:59 — forked from Linell/.git-commit-template.txt
git commit template in Chinese
# Type(<scope>): <subject>
# <body>
# <footer>
# type字段
# add 增加新博客/页面(add new post/page)
# correct 改错别字/语法(correct spelling/grammar )
# update 更新内容(update content)
@yulijia
yulijia / neural-style.out
Created December 23, 2015 02:22
my first neural style image training INFO
[root@localhost neural-style]# python run.py --content-image input/1.jpg --style-image input/starry_night.jpg --gpu -1
OpenCV is unavailable.
INFO:root:load the content image, size = (180, 180)
INFO:root:resize the content image to (600, 600)
INFO:root:start training arguments Namespace(content_image='input/1.jpg', content_weight=10, gpu=-1, lr=0.1, max_long_edge=600, max_num_epochs=1000, model='vgg19', output='output/out.jpg', remove_noise=0.2, save_epochs=50, stop_eps=0.005, style_image='input/starry_night.jpg', style_weight=1)
INFO:root:epoch 0, relative change 0.993356
INFO:root:epoch 1, relative change 0.639406
INFO:root:epoch 2, relative change 0.477160
INFO:root:epoch 3, relative change 0.384180
INFO:root:epoch 4, relative change 0.321211
https://kyfw.12306.cn/otn/lcxxcx/query?purpose_codes=ADULT&queryDate=2016-02-06&from_station=QYS&to_station=BJP
@yulijia
yulijia / A article post with summary
Created January 18, 2015 17:35
[Jekyll] How to create post summary in Freshman21 theme
---
published: true
title: how to create post summary
layout: post
summary: This post show us how to create a post summary step by step.
author: Yu
category: howto
tags:
- summary
---
@yulijia
yulijia / .bashrc
Last active August 29, 2015 14:04
A easy way to generate a new souce code file and open it with editor (vim , gedit)
alias count='ll -h ./ |grep "^-" |wc -l'
alias win7='cd /run/media/root'
alias vi='vim'
__pl() { /root/bin/codefile.sh $1 "pl"; };
alias pl='__pl'
__md() { codefile.sh $1 "md"; };
alias md='__md'
@yulijia
yulijia / messy_code.jl
Created March 6, 2014 15:05
A messy code file (messy_code.jl)
module AutoFormat
# package code goes here
# minimal function export list
export format
# main format function
function format(input::String, output::String, tab_width::Int)
result =String[]