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
rspec git:(runner_recursive_run_function) cargo test | |
Compiling getopts v0.2.14 | |
Compiling num-traits v0.1.32 | |
Compiling libc v0.2.11 | |
Compiling rand v0.3.14 | |
Compiling pulldown-cmark v0.0.3 | |
Compiling tempdir v0.3.4 | |
Compiling skeptic v0.4.0 | |
Compiling expectest v0.5.1 | |
Compiling rspec v0.1.0 (file:///Users/thomas/Documents/projects/rust/rspec) |
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] | |
fn runner_efectively_run_tests() { | |
let mut ran = false; | |
let mut runner = describe("A root", move |ctx| { | |
ctx.it("is expected to run", move || { | |
ran = true | |
}) | |
}); |
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
[package] | |
name = "rust-world" | |
version = "0.0.1" | |
authors = ["Thomas Wickham <[email protected]>"] | |
[dependencies] | |
a = "*" | |
abc = "*" | |
abomonation = "*" | |
abort_on_panic = "*" |
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
#[cfg(test)] | |
mod tests { | |
use super::*; | |
use test_utils::*; | |
use test_utils::ResType::*; | |
use std::net::SocketAddr; | |
use std::str::FromStr; |
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
Jul 27 17:46:04 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: 10.21.2.204 "POST /v1/hooks/config HTTP/1.1" 200 645 "deis-builder" | |
Jul 27 17:53:58 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: INFO actual-yachting: build actual-yachting-14ff67e created | |
Jul 27 17:53:58 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: INFO actual-yachting: release actual-yachting-v5 created | |
Jul 27 17:53:59 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: ERROR Internal Server Error: /v1/hooks/build | |
Jul 27 17:53:59 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: Traceback (most recent call last): | |
Jul 27 17:53:59 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response | |
Jul 27 17:53:59 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
Jul 27 17:53:59 ip-10-21-2-205.eu-west-1.compute.internal sh[3996]: File "/usr/lib/python2.7/site-packages/django/v |
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
#! /bin/bash | |
export PASSWORD=t0t0 | |
eval $@ | |
unset PASSWORD |
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
class Abstract | |
def self.StoreSnart | |
@snart = Snart::Pointer.new(@klass) | |
end | |
end | |
class Implem1 | |
extend Abstract | |
@klass = Implem1 | |
end |
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
.cstring | |
LC0: | |
.ascii "yo\0" | |
LC1: | |
.ascii "%f sisi %f\12\0" | |
.text | |
.globl _main | |
_main: | |
LFB1: | |
pushq %rbp |
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
/* | |
* Copyright (c) 2012-2013, Eelco Cramer | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
* | |
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; L |
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
zmq = require 'zmq' | |
{Socket} = zmq | |
s1 = new Socket 'push' | |
s2 = new Socket 'pull' | |
s1.on 'message', -> console.log 's1', arguments | |
s2.on 'message', -> console.log 's2', arguments | |
s1.bindSync 'inproc://test' |