Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"><Document><name>Golf Courses Austria</name><visibility>1</visibility><Placemark><name>Alpe-Adria-Golf Schl. Finkenst, K&#228;rnten</name><description>18 holes</description><visibility>1</visibility><Point><coordinates>13.860931,46.560514</coordinates></Point></Placemark><Placemark><name>Celtic GC - Sch&#228;rding, Ober&#246;sterreich</name><description>18 holes</description><visibility>1</visibility><Point><coordinates>13.521722,48.380870</coordinates></Point></Placemark><Placemark><name>City &amp; Country GC Richardhof, Nieder&#246;sterreich</name><description>9 holes</description><visibility>1</visibility><Point><coordinates>16.275173,48.055974</coordinates></Point></Placemark><Placemark><name>City Golf Graz-Puntigam, Steiermark</name><description>9 holes</description><visibility>1</visibility><Point><coordinates>15.447342,47.032675</coordinates></Point></Placemark><Placemark><name>Club Danube Golf-Wien, Wien</name><descripti
@d53dave
d53dave / fix_pyzmq.sh
Last active July 29, 2017 14:00
Fixing pyzmq 16 and 17 fileno() issue
#!/bin/sh
cd $(pipenv --venv) && sed -i '/_poller_class = Poller/ a\
def fileno(self):\
return self.FD\
' $(egrep -lir --include="__init__.py" "class Socket\(_AsyncIO, _future._AsyncSocket\)" .) && cd -
@d53dave
d53dave / erlang-resources.md
Created May 16, 2017 12:24 — forked from macintux/erlang-resources.md
Erlang online resources
@d53dave
d53dave / 0_reuse_code.js
Created September 28, 2015 11:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@d53dave
d53dave / filterShort.py
Created August 1, 2013 10:45
This script filters sequences shorter than a specified treshold. Works for fasta files
#!/usr/bin/env python
import optparse, time, sys
from Bio import SeqIO
def processFile(seqFile, cutoff=500, more=False, stream=False):
start_time = time.time()
if(more):
@d53dave
d53dave / findHpStretches.py
Last active December 20, 2015 12:19
This tool finds stretches of equal characters in a given fasta file. It can be used to compute homopolymer Stretches for nucleotide data
#!/usr/bin/env python
import optparse, re
from Bio import SeqIO
from itertools import groupby
def findHomopolymers(seqFile, more=False, all=False, length=6):
cumlen = 0
num = 0
results = []
@d53dave
d53dave / calcN.py
Created August 1, 2013 10:33
calcN.py script written during the "Genomanalyse von Prokaryoten" course. By default, it calculats the N50 value for a given fasta file. Any other N value can be computed by specifying the desired value after the input file
#!/usr/bin/env python
import optparse
from Bio import SeqIO
def calcN(seqFile, N=50, more=False):
seqlist = list()
totallength = 0
res = 0
res_pos = None