Skip to content

Instantly share code, notes, and snippets.

@SpecLad
SpecLad / wires.py
Last active January 21, 2018 17:16
Tools for not exploding
#!/usr/bin/env python3
import collections
import sys
def rindex(l, e):
return len(l) - 1 - l[::-1].index(e)
@omegahm
omegahm / quasicrystal.py
Last active April 28, 2021 01:44
Quasicrystals in Python
# -*- coding: utf-8 -*-
import bohrium as np
from math import pi
import matplotlib.pyplot as plt
import matplotlib.colors as colors
fig = plt.figure()
plt.xticks([])
plt.yticks([])
@bzm3r
bzm3r / gist:fbfc4e8a7dc09c2067da
Last active January 14, 2016 00:08
Roessler flow and corresponding Poincare map for section x=0, using PyDSTool
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 30 21:49:55 2015
@author: brian
"""
import PyDSTool as dst
from PyDSTool.Toolbox import phaseplane as pp
from matplotlib import pyplot as plt
@waltherg
waltherg / auto_in_notebook.ipynb
Last active June 12, 2022 12:39
AUTO 07p run from an iPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.