Skip to content

Instantly share code, notes, and snippets.

@ringw
ringw / git-clearHistory
Created Mar 16, 2018 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- 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
@ringw
ringw / bicluster.py
Created Mar 20, 2014
Daniel Ringwalt 02510 PS4
View bicluster.py
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)