Skip to content

Instantly share code, notes, and snippets.

View TimothyStiles's full-sized avatar

Tim TimothyStiles

View GitHub Profile
@TimothyStiles
TimothyStiles / worst_genbank_ever.gbk
Created June 18, 2022 16:38
The theoretically worst, yet still valid, GenBank file random nerds on the internet can think of.
GBBCT1.SEQ Genetic Sequence Data Bank
October 15 2020
NCBI-GenBank Flat File Release 240.0
Bacterial Sequences (Part 1)
101593 loci, 185853961 bases, from 101593 reported sequences
#!/usr/bin/env python
# This is an example Git server. http://blog.nerds.kr/post/106956608369/implementing-a-git-http-server-in-python
# Stewart Park <stewartpark92@gmail.com>
from flask import Flask, make_response, request, abort
from StringIO import StringIO
from dulwich.pack import PackStreamReader
import subprocess, os.path
from flask.ext.httpauth import HTTPBasicAuth
@paulkaplan
paulkaplan / STLFileSaver.js
Last active September 14, 2020 13:44
Create an ASCII STL file from a THREE.js mesh that can be saved save from browser and 3D printed
/*
Paul Kaplan, @ifitdidntwork
Create an ASCII STL file from a THREE.js mesh
that can be saved save from browser and 3D printed
--------------------------------------------------
See further explanation here:
http://buildaweso.me/project/2013/2/25/converting-threejs-objects-to-stl-files
--------------------------------------------------
Saving the file out of the browser is done using FileSaver.js