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
| (matplotlib)eduard@sagittaron $ tox -e py27 | |
| GLOB sdist-make: /home/eduard/dev/matplotlib/setup.py | |
| py27 inst-nodeps: /home/eduard/dev/matplotlib/.tox/dist/matplotlib-1.4.x.zip | |
| py27 runtests: commands[0] | |
| WARNING:test command found but not installed in testenv | |
| cmd: /usr/bin/sh | |
| env: /home/eduard/dev/matplotlib/.tox/py27 | |
| Maybe forgot to specify a dependency? | |
| py27 runtests: commands[1] | |
| E....................................................................................................................................................................................................................................K...K...................EEE...........................................................................................................................................................................................K................................................................................................................................................................................................. |
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 test_weak_and_lazy_loading(): | |
| '''Test loading/saving of model references''' | |
| class ChainMember(Model): | |
| '''This is a simple infinite chain of models referencing each other.''' | |
| def __init__(self, number, prev_member=None, next_member=None): | |
| Model.__init__(self) | |
| self.number = number | |
| self.prev_member = ref(prev_member, prev_member.model_id if prev_member is not None else None) |
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/env python | |
| '''Plot the output of the planet-disk simulation.''' | |
| from __future__ import division | |
| import sys | |
| from soapp.plot.voronoi import voronoi | |
| from soapp.parser.arepo.parser import ArepoParser |
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
| ; ModuleID = 'loop_trait.rs' | |
| target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | |
| target triple = "x86_64-unknown-linux-gnu" | |
| %"struct.std::unstable::intrinsics::TypeId[#1]" = type { i64 } | |
| %str_slice = type { i8*, i64 } | |
| %"enum.std::any::Void[#1]" = type {} | |
| %struct.SumLinearTermsKernel = type { double, double, i64 } | |
| %"enum.std::option::Option<int>[#1]" = type { i8, [7 x i8], [1 x i64] } | |
| %"struct.std::fmt::Argument[#1]" = type { void (%"enum.std::result::Result<(),std::io::IoError>[#1]"*, %"enum.std::any::Void[#1]"*, %"struct.std::fmt::Formatter[#1]"*)*, %"enum.std::any::Void[#1]"* } |
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
| use std::rc::Rc; | |
| use std::cell::{RefMut, RefCell}; | |
| struct Stuff{ | |
| i: int, | |
| } | |
| fn main() { | |
| // Allocate ref-counted stuff | |
| let rcref: Rc<RefCell<Stuff>> = Rc::new(RefCell::new(Stuff{i: 1})); |
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 matplotlib.pyplot as plt | |
| import numpy as np | |
| from matplotlib.backends.backend_pdf import PdfPages | |
| with PdfPages('multipage.pdf') as pp: | |
| for i in range(0, 10): | |
| fig = plt.figure() | |
| ax1 = fig.add_subplot(211) | |
| ax2 = fig.add_subplot(212) | |
| x = np.linspace(0, 10) |
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
| /target | |
| /Cargo.lock |
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
| struct Addition; | |
| struct Multiplication; | |
| trait Group<Op> { | |
| fn group_op(&self, rhs: &Self) -> Self; | |
| fn unital() -> Self; | |
| fn inverse(&self) -> Self; | |
| } | |
| trait AddGroup<AddOp>: Group<AddOp> {} |
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
| with import <nixpkgs> {}; | |
| pkgs.python.pkgs.buildPythonPackage rec { | |
| name = "vispy-master"; | |
| src = pkgs.fetchgit { | |
| url = "https://github.com/vispy/vispy"; | |
| sha256 = "1zm0gglvzlhliicwv5rm9nv34f1ql2i5vns8ybqr78r4bcz0f6dp"; | |
| rev = "38001b70d54a5519eb296d44a196c081fcbd7fad"; | |
| }; |
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
| with import <nixpkgs> {}; | |
| stdenv.mkDerivation rec { | |
| name = "data-analysis"; | |
| LD_LIBRARY_PATH = "${pkgs.fontconfig.lib}/lib"; | |
| buildInputs = [ | |
| (pkgs.python27.withPackages (packages: with packages; [ | |
| h5py |
OlderNewer