Skip to content

Instantly share code, notes, and snippets.

View nickschurch's full-sized avatar

Nick Schurch nickschurch

View GitHub Profile
@nickschurch
nickschurch / dndnexttest1.py
Created October 26, 2012 15:42
Code for simulating single a dual-wield weapon attacks with DnD next characters
#!/local/bin/python
'''
Code for doing some simple stats on the dndnext playtest rules
'''
import sys, os, numpy
import matplotlib.pyplot as plt
from numpy.random import randint
@nickschurch
nickschurch / id2ensemblID.py
Created August 27, 2012 11:40
Python routine for converting any gene IDs into ensembl gene IDs. See differentialExpressions.blogsopt.co.uk
import MySQLdb, re, time
def id2ensembl(id_list,
genus_name,
species_name,
ensemblver=None):
''' Converts a list of any IDs into ensemblIDs
Requires a list of IDs, a genus and species name, and
@nickschurch
nickschurch / entrez_to_ensembl_conversion.py
Created August 24, 2012 15:43
Python routine for converting entrezIDs to ensemblIDs see differentialExpressions.blogspot.co.uk
import MySQLdb, re, time
def entrez2ensembl(entrez_gene_list,
genus_name,
species_name,
ensemblver=None):
''' Converts a list of EntrezIDs into ensemblIDs
Requires a list of EntrezIDs, a genus and species name, and
@nickschurch
nickschurch / bob.test
Created August 23, 2012 15:34
frnkie
<script type=&quot;syntaxhighlighter&quot; class=&quot;brush: csharp&quot;>
<![CDATA[
// Comment
public class Testing {
public Testing() {
}
public void Method() {
/* Another Comment