Skip to content

Instantly share code, notes, and snippets.

Terry Jones terrycojones

Block or report user

Report or block terrycojones

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
terrycojones / factor
Created May 19, 2019
A factoring program written in dc
View factor
[ldlm<pclald%0=cld2+sdlfx]sf[lap[is prime.]plsx]sp[ldplald/salfx]sc
[[enter X : ]P?dsa0>n3sdllx]ss[[negative]plsx]snlsx
View elpy.el
(pyvenv-workon "37")
(setq elpy-test-runner 'elpy-test-trial-runner)
(list (expand-file-name (format "~/.virtualenvs/%s/bin/trial" pyvenv-virtual-env-name)) "--rterrors"))
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
View gist:1cb893b1725740d9df26596a841c6bac
$ echo $i
$ set i aaaxy
$ echo $i
# Whereas:
from gor4 import GOR4
_GOR4 = None
def predictions(sequence):
global _GOR4
if _GOR4 is None:
_GOR4 = GOR4()
return _GOR4.predict(sequence)['predictions']
View wigless.txt
"My dear fellow," Burlingame said caustically, "we sit on a blind rock
careening through space; we are all of us rushing headlong to the
grave. Think you the worms will care, when anon they make a meal of
you, whether you spent your moment sighing wigless in your chamber, or
sacked the golden towns of Montezuma? Lookee, the day's nigh spent;
'tis gone careening into time forever. Not a tale's length since we
lined our bowels with dinner, and already they growl for more. We are
dying men Ebenezer: i'faith, there's time for nought but bold
View gist:d0d2f232bafb857257b4462932dd8fa7
ls summary-proteins-* | \ \
--format fastq \
--html \
--minProteinFraction 0.1 \
--pathogenType bacterial \
--proteinFastaFilename $HOME/rdsbt/root/share/ncbi/bacterial-refseq/20180609-bacteria.nonredundant_protein.fasta.gz \
--pathogenPanelFilename bacteria.png \
--sampleIndexFilename samples.index \
--pathogenIndexFilename pathogens.index \
View gist:1953690f960e3da1d2e307cf918b8453
from sklearn.metrics import mutual_info_score
from sklearn.metrics.cluster import entropy
def normalized_information_distance(c1, c2):
Calculate Normalized Information Distance
Taken from Vinh, Epps, and Bailey, (2010). Information Theoretic Measures
for Clusterings Comparison: Variants, Properties, Normalization and
Correction for Chance, JMLR
View gist:39c738d04f342843adb8afd995924cb4
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
View locale.txt
$ locale
View tcr6-exif.txt
ExifTool Version Number : 8.98
File Name : tcr6.jpg
Directory : /Users/terry/Downloads
File Size : 40 kB
File Modification Date/Time : 2018:01:12 02:41:28+00:00
File Permissions : rw-rw-rw-
File Type : JPEG
MIME Type : image/jpeg
JFIF Version : 1.02
Resolution Unit : None
You can’t perform that action at this time.