Skip to content

Instantly share code, notes, and snippets.

💻
Typing...

Spencer Bliven sbliven

💻
Typing...
Block or report user

Report or block sbliven

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
@sbliven
sbliven / forester-1.038.pom
Created Dec 2, 2015
POM file for forester 1.038 based on the 1.005 POM. The URLs seem to be out-of-date here
View forester-1.038.pom
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.biojava.thirdparty</groupId>
<artifactId>forester</artifactId>
<packaging>jar</packaging>
<name>Forester</name>
<description>Applications and software libraries for evolutionary biology and comparative genomics research</description>
<url>https://code.google.com/p/forester/</url>
<version>1.038</version>
@sbliven
sbliven / ngltest.html
Created May 30, 2016
NGL test of spheres and labels
View ngltest.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<script src="https://rawgit.com/arose/ngl/master/js/build/ngl.embedded.min.js"></script>
<script>
@sbliven
sbliven / 404ForCaseSensitiveURLs.js
Last active Dec 26, 2018 — forked from AmrEldib/404ForCaseSensitiveURLs.js
Jekyll 404 page on GitHub Pages to fix case sensitive URLs
View 404ForCaseSensitiveURLs.js
var allposts = [];
function redirectToCorrectPage() {
console.log("Unable to find page. Trying other URL cases.");
{% for post in site.pages %}
allposts.push("{{ post.url }}");
{% endfor %}
var url = window.location.pathname;
// strip trailing /
if (url.slice(-1) === "/") {
url = url.slice(0, -1);
View GenericsHell.java
package demo;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
public class GenericsHell {
@sbliven
sbliven / cif2pdb.py
Created Apr 26, 2017
Convert mmCIF files to PDB format using biopython
View cif2pdb.py
#!/usr/bin/env python
"""
Script to convert mmCIF files to PDB format.
usage: python cif2pdb.py ciffile [pdbfile]
Requires python BioPython (`pip install biopython`). It should work with recent version of python 2 or 3.
@author Spencer Bliven <spencer.bliven@gmail.com>
"""
@sbliven
sbliven / guido_structures.html
Last active May 18, 2017
Demo of many NGL instances on one page
View guido_structures.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
@sbliven
sbliven / JupyterGenomeDiagram.ipynb
Created Jun 29, 2017
Demo of displaying GenomeDiagram objects in Jupyter
View JupyterGenomeDiagram.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbliven
sbliven / JupyterGenomeDiagram.ipynb
Last active Aug 22, 2017
Example of BioPython #1329 (broken version)
View JupyterGenomeDiagram.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbliven
sbliven / JupyterGenomeDiagram.ipynb
Created Aug 22, 2017
Example of BioPython #1329 (fixed version)
View JupyterGenomeDiagram.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbliven
sbliven / interfaces
Created Oct 10, 2017
ZHAW Raspberry Pi network settings.
View interfaces
# /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
You can’t perform that action at this time.