Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ringw
ringw / bicluster.py
Created March 20, 2014 01:19
Daniel Ringwalt 02510 PS4
import numpy as np
alphaCycle = np.loadtxt('alphaCycle.txt')
geneNames = np.loadtxt('alphaGenes.txt', dtype=str)
alphaDiscrete = np.zeros_like(alphaCycle, dtype=int)
alphaDiscrete[alphaCycle >= 1] = 1
alphaDiscrete[alphaCycle <= -1] = -1
print "# values >= 1:", np.sum(alphaDiscrete == 1)
print "# values <= -1:", np.sum(alphaDiscrete == -1)
@ringw
ringw / git-clearHistory
Created March 16, 2018 19:56 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git