Skip to content

Instantly share code, notes, and snippets.

View jdm's full-sized avatar

Josh Matthews jdm

View GitHub Profile
commit 2b82584c108cf3a8f6f071f8459bc3b216972c68
Author: Josh Matthews <[email protected]>
Date: Fri Jan 13 19:17:40 2017 -0500
Set the proper filename and line number for inline compiled event handlers.
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index de1ac8f..8384aaf 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@jdm
jdm / script.sh
Created December 16, 2016 18:17
TWiS new contributor detection
#!/bin/sh
INITIAL_COMMIT=ce30d45
START_COMMIT=`git log --before="last week" --pretty=format:%H|head -n1`
ALL_NAMES=`git log $INITIAL_COMMIT.. --pretty=format:%an|sort|uniq`
OLD_NAMES=`git log $INITIAL_COMMIT..$START_COMMIT --pretty=format:%an|sort|uniq`
echo "$OLD_NAMES">names_old.txt
echo "$ALL_NAMES">names_all.txt
diff names_old.txt names_all.txt
#rm names_old.txt names_all.txt
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.