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
#[link(name = "cairo")] | |
extern { | |
fn cairo_matrix_init(this: *mut Matrix, xx: f64, yx: f64, xy: f64, yy: f64, x0: f64, y0: f64) -> Matrix; | |
} | |
pub struct Matrix { | |
xx: f64, | |
yx: f64, | |
xy: f64, | |
yy: f64, |
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
{ | |
"type": "crate", | |
"name": "cairo", | |
"children": [ | |
{ | |
"type": "library", | |
"name": "cairo" | |
}, | |
{ |
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
let webpage = require('webpage') | |
page = webpage.create() | |
page.open('http://ollehost.dk/junx/js2.html').then(function () { | |
console.log(page.content) | |
webpage.close() | |
slimerjs.exit() | |
}) |
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
canon | |
se | |
[email protected] | |
asd ad.se | |
ads_asd.googol.com | |
東方.jp | |
perfect.jp |
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
* thread #1: tid = 0x1c03, 0x03fd57e7 WebCore`WebCore::RenderBox::canBeScrolledAndHasScrollableArea() const + 55, stop reason = EXC_BAD_ACCESS (code=1, address=0xdfbee815) | |
frame #0: 0x03fd57e7 WebCore`WebCore::RenderBox::canBeScrolledAndHasScrollableArea() const + 55 | |
frame #1: 0x03f3872b WebCore`WebCore::Node::defaultEventHandler(WebCore::Event*) + 683 | |
frame #2: 0x03904c4b WebCore`WebCore::HTMLInputElement::defaultEventHandler(WebCore::Event*) + 859 | |
frame #3: 0x037bb7e8 WebCore`WebCore::EventDispatcher::dispatchEventPostProcess(void*) + 312 | |
frame #4: 0x037bb46b WebCore`WebCore::EventDispatcher::dispatch() + 955 | |
frame #5: 0x037bbc01 WebCore`WebCore::EventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*) const + 17 | |
frame #6: 0x037ba46a WebCore`WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtr<WebCore::EventDispatchMediator>) + 138 | |
frame #7: 0x03f376c3 WebCore`WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 163 | |
frame #8: 0x037d5a4 |
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
Selene Git/rust ‹inline-ir*› » make check | |
cfg: build triple x86_64-apple-darwin | |
cfg: host triples x86_64-apple-darwin | |
cfg: target triples x86_64-apple-darwin | |
cfg: host for x86_64-apple-darwin is x86_64 | |
cfg: os for x86_64-apple-darwin is apple-darwin | |
cfg: using clang | |
cfg: no pandoc found, omitting docs | |
cfg: no llnextgen found, omitting grammar-verification | |
cfg: no pandoc found, omitting library doc build |
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
llvm!(extern { | |
ir "declare i64 @llvm.readcyclecounter()"; | |
fn readcyclecounter() -> i64 { | |
"%result = call i64 @llvm.readcyclecounter() | |
ret i64 %result" | |
} | |
}) | |
#[fixed_stack_segment] |
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
llvm!(extern { | |
fn add(a:i8, b:i8) -> i8 { | |
"%result = add i8 %arg0, %arg1 | |
ret i8 %result" | |
} | |
}) | |
#[fixed_stack_segment] | |
fn main() { | |
printfln!("Sum 2 + 8 is: %?", unsafe { add(2, 8) }); |
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
pub trait EventGenerator { | |
pub fn dequeue_event(&mut self) -> (Result<uint>, Option<Event>); | |
pub fn enqueue_event(&mut self, event:Event) -> Result<uint>; | |
} | |
pub trait StreamSink : EventGenerator { | |
pub fn sink(&self) -> @Sink; | |
} |
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
extern mod testcrate; | |
fn main() { | |
let f = testcrate::V2(1.0f32, 2.0f32); | |
} |