Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
""" | |
In [16]: %timeit dic_normal(1000) | |
1000 loops, best of 3: 802 µs per loop | |
In [17]: %timeit dic_mongo(1000) | |
1 loops, best of 3: 308 ms per loop | |
In [18]: dic2 = dic_normal(1000) | |
In [19]: %time col.insert(dic2) | |
CPU times: user 15.1 ms, sys: 600 µs, total: 15.7 ms | |
Wall time: 22.1 ms | |
""" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 sys | |
from numpy import NaN, Inf, arange, isscalar, array | |
def peakdet(v, delta, x = None): | |
""" | |
Converted from MATLAB script at http://billauer.co.il/peakdet.html | |
Returns two arrays | |
function [maxtab, mintab]=peakdet(v, delta, x) |
This file contains 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
""" | |
MinMax peak detector | |
Originally from: | |
https://fedorahosted.org/pydarn/export/dfbf33a36aab3f576ec585f66b6bc99dfd5750d7/peakdetect/MinMax.py | |
""" | |
import sys, copy, math | |
import numpy |
This file contains 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
# coding:utf8 | |
""" | |
Exemplos de integração numérica de sistemas de equações diferenciais ordinárias. | |
ode : interface para a coleção de solvers VODE http://www.netlib.org/ode | |
Flávio Codeço Coelho | |
Licença: GPL | |
""" |
This file contains 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
# Ubuntu upstart file at /etc/init/mongodb.conf | |
pre-start script | |
mkdir -p /var/lib/mongodb/ | |
mkdir -p /var/log/mongodb/ | |
end script | |
start on runlevel [2345] | |
stop on runlevel [06] |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Tests for the virtualenvmagic extension | |
Author: Flávio Codeço Coelho - @fccoelho | |
""" | |
import os | |
import nose.tools as nt | |
This file contains 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
<script src="/js/d3.v2.js"></script> | |
<link type="text/css" rel="stylesheet" href="/css/colorbrewer/colorbrewer.css"> | |
<style type="text/css"> | |
svg { | |
background: #eee; | |
width: 960px; | |
height: 500px; | |
} | |
#polygons path { | |
stroke: #fff; |
OlderNewer