Skip to content

Instantly share code, notes, and snippets.

View jdm's full-sized avatar

Josh Matthews jdm

View GitHub Profile
use std::cell::RefCell;
struct D {
d: RefCell<i32>,
}
impl D {
fn get(&self) -> Option<i32> {
Some(*self.d.borrow())
}
import itertools
import json
import sys
def rr_trace_directory(output):
for data in reversed(output):
if "action" in data and data["action"] == "process_output" and \
"Saving execution" in data["data"]:
return data["data"][data["data"].index('`')+1:-2]
raise "no rr trace found for process %s" % output[0]["process"]
(view as text)
./mach build --rel --target=aarch64-unknown-linux-gnu
in dir /home/servo/buildbot/slave/arm64/build (timeout 1200 secs)
watching logfiles {}
argv: ['./mach', 'build', '--rel', '--target=aarch64-unknown-linux-gnu']
environment:
BUILD_TARGET=aarch64-unknown-linux-gnu
CARGO_HOME=/home/servo/.cargo
CC=aarch64-linux-gnu-gcc
(view as text)
./mach build --rel --target=aarch64-unknown-linux-gnu
in dir /home/servo/buildbot/slave/arm64/build (timeout 1200 secs)
watching logfiles {}
argv: ['./mach', 'build', '--rel', '--target=aarch64-unknown-linux-gnu']
environment:
BUILD_TARGET=aarch64-unknown-linux-gnu
CARGO_HOME=/home/servo/.cargo
CC=aarch64-linux-gnu-gcc
let num_h_tiles = tile.sheet.sheet_size.0;
let tile_w = tile.sheet.tile_size.0;
let tile_h = tile.sheet.tile_size.1;
let src_x = tile.index % num_h_tiles * tile_w;
let src_y = tile.index / num_h_tiles * tile_h;
let image = Image::new()
.src_rect([src_x as i32,
src_y as i32,
tile_w as i32,
import subprocess
import re
import sys
print 'building...'
try:
output = subprocess.check_output(["ninja", "-C", "out/Default", "chrome"],
stderr=subprocess.STDOUT,
shell=False)
print 'no errors found!'
rust-url diff:
diff --git a/Cargo.toml b/Cargo.toml
index b4fb880..fd147f3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "url"
-version = "1.2.3"
12:46 <jdm> bz: would the source browsing context of the first navigation in https://pastebin.mozilla.org/8921884 be the child browsing context?
12:46 <smaug> bkelly: I'm just wondering if we could simplify the stuff here. (I haven't yet started to look at your patches)
12:47 <bz> jdm: um...
12:47 <bkelly> smaug: my patches do simplify that
12:47 <smaug> k
12:47 <bz> jdm: https://github.com/whatwg/html/issues/1130
12:47 <bz> jdm: But what are you really asking?
12:47 <jdm> bz: yeah, ajeffrey found that issue as a result of a discussion of how to handle this case in servo
12:48 <bkelly> smaug: nsDOMWindowUtils() was using the defaults from SuspendTimeouts before bug 1178721... the default happened to be freezing children
12:48 <firebot> https://bugzil.la/1178721 — FIXED, [email protected] — Worker should not be frozen when events are suspended.
Many FOSS projects find it difficult to grow beyond a small team of core contributors, but this does not need to be the case. There are tried and true ways to lower the barrier to entry and increase the potential pool of contributors. Joshua Matthews presents a five-point plan that provides a solid foundation for encouraging new contributors.
/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */
#![allow(non_camel_case_types,non_upper_case_globals,unused_imports,unused_variables,unused_assignments)]
use core::nonzero::NonZero;
use dom;
use dom::bindings;
use dom::bindings::callback::CallSetup;
use dom::bindings::callback::CallbackContainer;
use dom::bindings::callback::CallbackFunction;
use dom::bindings::callback::CallbackInterface;