Skip to content

Instantly share code, notes, and snippets.

View germannp's full-sized avatar

Philipp Germann germannp

View GitHub Profile
@germannp
germannp / rotanim.py
Created April 13, 2015 15:05
Matplotlib script to create a rotating animation.
"""Save frames from different POVs"""
import os
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
@germannp
germannp / simulate_contacts.py
Created June 8, 2015 14:17
A simple simulation illustrating triplet contacts among different lymphocytes.
"""Simulates and visualizes triples of DCs, CD4+ and CD8+ T cells."""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.animation as animation
import scipy.spatial as spatial
# Radius around DC within which T cells are considered in contact
contact_radius = 0.1
@germannp
germannp / GPU-Prices.ipynb
Created January 27, 2016 08:34
Comparing GPU prices
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@germannp
germannp / Chains.ipynb
Last active January 5, 2019 16:29
Local Viscosity
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@germannp
germannp / ecto-seq.ipynb
Last active May 22, 2018 12:00
Sequencing Ectodermal Regions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@germannp
germannp / TestPerformance.hpp
Last active July 18, 2018 11:36
Performance Comparison
/*
Copyright (c) 2017, European Molecular Biology Laboratory.
Copyright (c) 2005-2017, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
@germannp
germannp / oscillator.png
Last active July 5, 2018 09:34
Fun with epigenetic oscillations.
oscillator.png
@germannp
germannp / Business_Cycles.ipynb
Last active January 7, 2019 11:05
Looking at business cycles.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Won't compile for device:
template<typename T>
__device__ T add_one(T x)
{
return x + 1;
}
template<typename T>
using Function = T(T x);