Skip to content

Instantly share code, notes, and snippets.

@lrvdijk
lrvdijk / dbg_dot.py
Last active January 20, 2021 23:24
Visualize unitgs in a De Bruijn graph. Emulates Bifrost's construction algorithm, but with more explicit use of nodes and edges.
"""
This script creates a small-scale De Bruijn graph visualization using graphviz.
The construction of the De Bruijn graph is done in a similar way how Bifrost
constructs the graph, although with different data structures (more explicit
use of nodes and edges).
Usage:
dbg_dot.py k FASTA | dot -Tpng -o output.ong
@lrvdijk
lrvdijk / graphgen.py
Created September 8, 2015 21:08
Hockey Team Stats generator
#!/usr/bin/env python3
"""
Graph generator for wiebetaaltwat.nl
====================================
Written by Lucas van Dijk <info@return1.net>
"""
from bs4 import BeautifulSoup

Visualizing static and dynamic networks in Vispy

Abstract

Vispy is a high performance 2D/3D visualization library which uses the GPU intensively through OpenGL. This Google Summer of code project proposes to add an API to Vispy to visualize static and dynamic (boolean, linear and Bayesian)

@lrvdijk
lrvdijk / keybase.md
Last active June 5, 2017 07:50
Keybase verification

Keybase proof

I hereby claim:

  • I am lrvdijk on github.
  • I am sh4wn (https://keybase.io/sh4wn) on keybase.
  • I have a public key whose fingerprint is EABC FBBB 91DD 0E13 03BF 2302 5A16 2DC1 C480 6F5C

To claim this, I am signing this object:

@lrvdijk
lrvdijk / admin.py
Created July 8, 2012 10:02
Mezzanine models
from django.contrib import admin
from mezzanine.core.admin import StackedDynamicInlineAdmin
from mezzanine.pages.admin import PageAdmin
from helios3d.sponsors.models import Sponsor, SponsorCategory, SponsorPage
from copy import deepcopy
sponsor_admin_fieldsets = deepcopy(PageAdmin.fieldsets)
sponsor_admin_fieldsets[0][1]['fields'].insert(-3, 'categories')
@lrvdijk
lrvdijk / usart.c
Created February 3, 2011 13:34
USART non interrupt driven example
/**
* Voltmeter based on atmega168, sends Analog2Digital conversion
* results over RS232 to the connected computer
*
* Created by Lucas van Dijk
* http://www.return1.net
*/
#ifndef F_CPU
#define F_CPU 3686400
@lrvdijk
lrvdijk / main.c
Created January 30, 2011 20:06
AVR USART Example
/**
* Voltmeter based on atmega168, sends Analog2Digital conversion
* results over RS232 to the connected computer
*
* Created by Lucas van Dijk
* http://www.return1.net
*/
#ifndef F_CPU
#define F_CPU 8000000