Need to install paramiko port and context2lib then fabric python 3.3 port:
pip install git+https://github.com/scottkmaxwell/paramiko.git@py3-support-without-py25
pip install contextlib2
pip install git+https://github.com/pashinin/fabric.git@p33
""" | |
A simple example that generates a random figure and serves it using Bottle | |
""" | |
import numpy as np | |
import StringIO | |
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas | |
from matplotlib.figure import Figure |
from __future__ import print_function | |
import multiprocessing | |
import ctypes | |
import numpy as np | |
def shared_array(shape): | |
""" | |
Form a shared memory numpy array. | |
""" | |
Fabric configuration for a Python 3.3 environment using Anaconda. | |
""" | |
from fabric.api import run, cd | |
from fabric.context_managers import prefix | |
CONDA_REPO = 'http://repo.continuum.io/miniconda/' | |
CONDA_VERS = 'Miniconda3-3.0.0-Linux-x86_64.sh' |
###################### | |
### DESIGN CHANGES ### | |
###################### | |
# panes | |
set -g pane-border-fg black | |
set -g pane-active-border-fg brightred | |
## Status bar design | |
# status line |
These are snippets of py.test in action, used in a talk given at | |
PyCon AU 2012 in Hobart, Tasmania. They are all relevant for | |
py.test 2.2 except where specified. Where taken from open source | |
projects I have listed a URL, some examples are from the py.test | |
documentation, some are from my workplace. | |
Apart from things called test_*, these functions should probably | |
be in your conftest.py, although they can generally start life in | |
your test files. |
;;; emacs.d --- emacs configuration. | |
;;; Commentary: current configuration (2016) | |
;;; Code: | |
(setq user-full-name "Nathan Faggian" | |
user-mail-address "nathan.faggian@gmail.com") | |
;; Packages | |
;; ============================================================ |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 17 10:50:56 2013 | |
@author: cmarshall | |
""" | |
import sip | |
sip.setapi('QString', 1) | |
sip.setapi('QVariant', 1) |
from xml.etree import cElementTree | |
from urlparse import urljoin | |
import requests | |
# namespaces for XML parsing | |
thredds = "http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0" | |
xlink = "http://www.w3.org/1999/xlink" | |
def crawl(catalog): |