This file contains 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 Token: | |
ASSIGN = 'assign' | |
NAME = 'name' | |
NUMBER = 'number' | |
PLUS = 'plus' | |
MINUS = 'minus' | |
LPARENS = 'lparens' | |
RPARENS = 'rparens' | |
DOUBLEDOT = 'doubledot' |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Drag and Drop Download</title> | |
<script> | |
window.addEventListener('DOMContentLoaded', function () { | |
var downloadLink = document.getElementById('download'); | |
/* |
This file contains 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
<!doctype html> | |
<html> | |
<body> | |
<script> | |
var abortController = new AbortController(); | |
let i = 0; | |
let aborted = false; | |
var rs = new ReadableStream({ |
This file contains 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
┌──────────────┐ ┌──────────────┐ | |
│Closed promise├───┐ ┌──────────┤Closed promise│ | |
└──┬───────────┘ │ │ └──────────────┘ | |
│ NativePromiseHandler ▲ | |
│ │ │ │ | |
│ ▼ ▼ │ | |
┌────┴──┐ ┌────────────┐ ┌────┴─┐ | |
│ Writer│◄────────┤ PipeToPump │ ───────►│Reader│ | |
└───────┘ └────────────┘ └─┬────┘ | |
▲ │ |
This file contains 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
diff --git a/dom/events/test/test_DataTransferItemList.html b/dom/events/test/test_DataTransferItemList.html | |
--- a/dom/events/test/test_DataTransferItemList.html | |
+++ b/dom/events/test/test_DataTransferItemList.html | |
@@ -30,6 +30,7 @@ | |
var dragstartFired = 0; | |
draggable.addEventListener('dragstart', onDragStart); | |
function onDragStart(e) { | |
+ console.log("dragstart"); | |
draggable.removeEventListener('dragstart', onDragStart); | |
This file contains 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
alias: Keypad Arm | |
description: Arm Home Assistant alarm using the keypad. | |
trigger: | |
- platform: mqtt | |
topic: zigbee2mqtt/Keypad | |
condition: | |
- condition: template | |
value_template: '{{ trigger.payload_json.action_code == "9998" }}' | |
- condition: template | |
value_template: '{{ trigger.payload_json.action == "arm_all_zones" }}' |
This file contains 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
var stream = new ReadableStream({ | |
start(controller) { | |
controller.enqueue("abc"); | |
controller.enqueue("123"); | |
controller.close() | |
} | |
}); | |
var reader = stream.getReader(); | |
reader.read().then(({ value, done}) => { |
This file contains 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
import re | |
import os | |
paths = [ | |
"testing/web-platform/tests/eventsource/shared-worker/eventsource-constructor-url-bogus.htm", | |
"testing/web-platform/tests/eventsource/shared-worker/eventsource-onmesage.htm", | |
"testing/web-platform/tests/eventsource/shared-worker/eventsource-eventtarget.htm", | |
"testing/web-platform/tests/eventsource/shared-worker/eventsource-onopen.htm", | |
"testing/web-platform/tests/eventsource/shared-worker/eventsource-close.htm", | |
"testing/web-platform/tests/eventsource/shared-worker/eventsource-url.htm", |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import glob | |
import os | |
parser = argparse.ArgumentParser(description='Run kraken/sunspider.', | |
formatter_class=argparse.ArgumentDefaultsHelpFormatter) | |
parser.add_argument( | |
'--shell', |
NewerOlder