Skip to content

Instantly share code, notes, and snippets.

View jdm's full-sized avatar

Josh Matthews jdm

View GitHub Profile
struct Node {
shared_ptr<Node> parent;
shared_ptr<Node> first_child;
TextNode* as_text_node() { assert(/*sensible check*/); return (TextNode*)this; }
virtual Element* as_element() { return NULL; }
};
struct TextNode: public Node {
};
C:\Users\task_1612394859\repo\target\debug\build\mozjs_sys-b80d498c76874db1\out\build\dist\include\mozilla/Assertions.h(249): warning C4100: 'aReason': unreferenced formal parameter
C:\Users\task_1612394859\repo\target\debug\build\mozjs_sys-b80d498c76874db1\out\build\dist\include\mozilla/Assertions.h(249): warning C4100: 'aFilename': unreferenced formal parameter
C:\Users\task_1612394859\repo\target\debug\build\mozjs_sys-b80d498c76874db1\out\build\dist\include\mozilla/Char16.h(68): warning C4244: 'return': conversion from 'intptr_t' to 'int', possible loss of data
C:\Users\task_1612394859\repo\target\debug\build\mozjs_sys-b80d498c76874db1\out\build\dist\include\mozilla/Char16.h(70): warning C4244: 'return': conversion from 'uintptr_t' to 'unsigned int', possible loss of data
C:\Users\task_1612394859\repo\target\debug\build\mozjs_sys-b80d498c76874db1\out\build\dist\include\mozilla/Char16.h(72): warning C4244: 'return': conversion from 'intptr_t' to 'long', possible loss of data
C:\Users\task_16123948
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdm
jdm / tombstone
Last active September 23, 2020 03:21
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.012/4613442:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 25942, tid: 25964, name: m.mozilla.servo >>> com.mozilla.servo <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xc338e6f8
eax c338e420 ebx c338e3a8 ecx 0000002a edx 0000002a
esi c338e268 edi c338e340
xcs 00000023 xds 0000002b xes 0000002b xfs 0000006b xss 0000002b
eip c338e6f8 ebp d083a97c esp c338e340 flags 00210296
godot:newcontributors jdm$ ./mkblog.sh 13
Getting info for 10
https://bugzilla.mozilla.org/rest/bug?status=RESOLVED&target_milestone=Firefox+10&target_milestone=mozilla10&include_fields=id%2Cassigned_to
Getting info for 11
https://bugzilla.mozilla.org/rest/bug?status=RESOLVED&target_milestone=Firefox+11&target_milestone=mozilla11&include_fields=id%2Cassigned_to
Getting info for 12
https://bugzilla.mozilla.org/rest/bug?status=RESOLVED&target_milestone=Firefox+12&target_milestone=mozilla12&include_fields=id%2Cassigned_to
Getting info for 13
https://bugzilla.mozilla.org/rest/bug?status=RESOLVED&target_milestone=Firefox+13&target_milestone=mozilla13&include_fields=id%2Cassigned_to
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='C:\ProgramData\Windows App Certification Kit\results.xsl'?>
<REPORT xml:lang="en-US" OVERALL_RESULT="FAIL" VERSION="10.0.18362.1" LATEST_VERSION="" UPDATE_DOWNLOAD_URL="" TOOLSET_ARCHITECTURE="x64" SecureBoot="FALSE" APP_TYPE="UapApp" PUBLISHER_DISPLAY_NAME="CN=Allizom" APP_NAME="" APP_VERSION="" OSVERSION="10.0.18363.0" OS="Microsoft Windows 10 Pro" PER_USER_APPLICATION="" PARTIAL_RUN="FALSE" LCID="1033" X64_ONLY="FALSE" VALIDATION_TYPE="CommandLine" ReportGenerationTime="7/22/2020 1:36:51 PM" ID="ed172902cfb187d395454c1f9215eb8e">
<REQUIREMENTS>
<REQUIREMENT NUMBER="10" TITLE="Deployment and launch tests" RATIONALE="Application failures such as crashes and hangs are a major disruption to users and cause frustration. Eliminating such failures improves application stability and reliability, and overall, provides users with a better application experience.">
<TEST INDEX="50" NAME="Bytecode generation" DESCRIPTION="Byte co
<html class="a-fullscreen light-theme">
<style>
html.a-fullscreen {
bottom: 0;
left: 0;
position: fixed;
right: 0;
top: 0;
}
<style>
body {
background-color: #222222;
--menu-background-color: white;
--menu-icon-color: #202020;
--unfavorited-color: gray;
--action-button-secondary-background: white;
}
.ui-root__nag-corner-button__3TFW5 button, .ui-root__choose-scene-button__3VNdD {
background-color: var(--action-button-secondary-background);
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef enum {
Ignored,
Selected,
Dismissed_,
} CContextMenuResult;
@jdm
jdm / gist:b4ab28407294a08439ea
Last active April 13, 2020 17:41
Rust Toronto code of conduct

Rust Toronto is dedicated to providing a harassment-free meetup experience for everyone, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, age or religion. We do not tolerate harassment of participants in any form. Sexual language and imagery is not appropriate for any meetup venue, including talks. Attendees violating these rules may be required to leave at the discretion of the conference organizers.

Harassment includes verbal comments that reinforce social structures of domination related to gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, age, religion; sexual images in public spaces; deliberate intimidation; stalking; following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention. Participants asked to stop any harassing behavior are expected to comply immediately.

If an attend