Skip to content

Instantly share code, notes, and snippets.

View sbliven's full-sized avatar
💻
Typing...

Spencer Bliven sbliven

💻
Typing...
View GitHub Profile
@sbliven
sbliven / forester-1.038.pom
Created December 2, 2015 13:52
POM file for forester 1.038 based on the 1.005 POM. The URLs seem to be out-of-date here
<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 16:03
NGL test of spheres and labels
<!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>
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 / guido_structures.html
Last active May 18, 2017 14:20
Demo of many NGL instances on one page
<!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 August 22, 2017 13:09
Example of BioPython #1329 (fixed version)
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 August 22, 2017 13:13
Example of BioPython #1329 (broken version)
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 October 10, 2017 15:55
ZHAW Raspberry Pi network settings.
# /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
@sbliven
sbliven / show_ip.py
Created December 5, 2017 17:42
Script to show current IP address on SenseHat
from sense_hat import SenseHat
import socket
def get_ip():
# overridden by /etc/hosts, so doesn't work for us
#hosts_ips = [ip for ip in socket.gethostbyname_ex(socket.gethostname())[2] if not ip.startswith("127.")][:1]
# try to connect to google
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(('8.8.8.8', 53))
@sbliven
sbliven / nab2ynab.R
Created December 11, 2017 20:51
Convert bank transaction data from Neue Aargauer Bank CSV files to the format expected by youneedabudget.com
#!/usr/bin/env Rscript
library(readr)
library(dplyr)
library(magrittr)
args = commandArgs(trailingOnly=TRUE)
if (length(args) != 2) {
stop("usage: nab2ynab.R nab.csv ynab.csv", call.=FALSE)
}
@sbliven
sbliven / JupyterGenomeDiagram.ipynb
Created June 29, 2017 13:35
Demo of displaying GenomeDiagram objects in Jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.