This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Test this file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import time | |
| class Worker(threading.Thread): | |
| def __init__(self): | |
| threading.Thread.__init__(self) | |
| self.val = 0 | |
| self.val2 = 20 | |
| def run(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name GitHub Fixed Font | |
| // @namespace http://jonasgalvez.com.br/ | |
| // @description Fixed-font code listings for GitHub | |
| // @include http://github.com/* | |
| // @include http://*.github.com/* | |
| // @include https://*.github.com/* | |
| // @include https://*.github.com/* | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def minimize_doc(method=None): | |
| """Additional arguments for SciPy minimisers. | |
| * BFGS | |
| - Arg 1 descr | |
| - Arg 2 descr | |
| * Newton | |
| - Newton arg 1 | |
| - Newton arg 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # coding=utf-8 | |
| # Python version of Zach Holman's "spark" | |
| # https://github.com/holman/spark | |
| # by Stefan van der Walt <stefan@sun.ac.za> | |
| """ | |
| USAGE: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| # Signal frequencies, in Hz | |
| f = np.array([10, 20, 40, 80]) | |
| # Sampling duration | |
| T = 1.0 | |
| # Sampling frequency (in Hz) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.animation as animation | |
| fig = plt.figure() | |
| ax = fig.add_subplot(111) | |
| ax.set_xlim(-10, 10) | |
| ax.set_aspect(1) | |
| x = [0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stefan van der Walt, 2012 | |
| # License: BSD | |
| # Implementation of the simulation described in | |
| # | |
| # Atsushi Kamimura and Toru Ohira, "Group Chase and Escape", | |
| # New Journal of Physics, 12 (2010). | |
| # | |
| # http://arxiv.org/abs/0912.4327v2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dear all, | |
| Here's a list of attendees, in alphabetical order: | |
| {{py: | |
| attendees = [ | |
| "Van der Walt, Stefan", | |
| "Laurie, Dirk",] | |
| }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import division | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy import ndimage | |
| N = 100 | |
| std = 3.75 | |
| box = 5 |
OlderNewer