Skip to content

Instantly share code, notes, and snippets.

View indexofire's full-sized avatar
🎯
Focusing

Mark Renton indexofire

🎯
Focusing
View GitHub Profile
@indexofire
indexofire / docker-registry-mirrors.md
Created September 9, 2024 22:18 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@indexofire
indexofire / number-game.py
Last active May 26, 2019 06:01
a interesting hand game for 2 people
# game
for i in range(1, 10):
for j in range(1, 10):
print(cmp(i, j))
def cmp(a, b, n=1, ia=0, ib=0):
if a > 10: a -= 10
if b > 10: b -= 10
if n == 1:
ia = a and ib = b
@indexofire
indexofire / suduku.py
Last active October 30, 2017 23:25
9宫格解法python3版本
def findNextCellToFill(grid, i, j):
"""
遍历九宫格
如果九宫格内含有0,表示没有解决;
如果九宫格内不含有0,表示得到结果,循环终止
"""
# 检查第i行是否有0
for x in range(i,9):
for y in range(j,9):
@indexofire
indexofire / practice.rst
Created July 16, 2016 02:30
Practice.rst

Miseq 下机数据分析应用实例

在Miseq上通过对24个混合样本的PE测序,获得的下机PF Data,从QC到de novo assembly过程的基本操作流程。

1. 前期处理

1.1 分样

import subprocess
subprocess.call("abyss-pe k=51 n=10 in='reads1.fa reads2.fa' name=abyss_assembly", shell=True)

####install pip and virtualenv

$ sudo aptitude install python-setuptools python-pip
$ sudo pip install virtualenv

#easy_install
#easy_install pip
#pip install everything
#sudo pip install web.py