Skip to content

Instantly share code, notes, and snippets.

@ekashida
ekashida / lit-all.js
Last active February 16, 2024 21:25
lit-all.min.js after disabling terser, removing comments, and removing the exports (b779807a82649b5128eb754b77b7b3cb4c7c1f98)
const NODE_MODE$1 = false;
const global$2 = globalThis;
const supportsAdoptingStyleSheets = global$2.ShadowRoot &&
(global$2.ShadyCSS === undefined || global$2.ShadyCSS.nativeShadow) &&
'adoptedStyleSheets' in Document.prototype &&
'replace' in CSSStyleSheet.prototype;
const constructionToken = Symbol();
@ekashida
ekashida / lit-all.js
Last active February 16, 2024 21:31
lit-all.min.js after disabling terser, removing comments, removing exports, and removing createPolicy() (b779807a82649b5128eb754b77b7b3cb4c7c1f98)
const NODE_MODE$1 = false;
const global$2 = globalThis;
const supportsAdoptingStyleSheets = global$2.ShadowRoot &&
(global$2.ShadyCSS === undefined || global$2.ShadyCSS.nativeShadow) &&
'adoptedStyleSheets' in Document.prototype &&
'replace' in CSSStyleSheet.prototype;
const constructionToken = Symbol();
@ekashida
ekashida / lit-all.js
Last active February 16, 2024 21:10
lit-all.min.js after disabling terser (b779807a82649b5128eb754b77b7b3cb4c7c1f98)
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const NODE_MODE$1 = false;
// Allows minifiers to rename references to globalThis
const global$2 = globalThis;
/**
* Whether the current browser supports `adoptedStyleSheets`.
@ekashida
ekashida / foobarbaz.html
Created April 18, 2023 19:56
lwc-external
<template>
<p>foobarbaz</p>
<div lwc:dom="manual"></div>
<my-foobarbaz lwc:external foo="barbaz">lwc:external</my-foobarbaz>
</template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1>ValidityState.patternMismatch test</h1>
@ekashida
ekashida / index.css
Created October 21, 2014 04:48
Events dispatched by Good Guy Mobile Safari on almost-clicks
div {
padding: 20px 0;
margin: 5px 0;
background-color: lightgreen;
outline: 1px solid blue;
display: inline-block;
}
a {
background-color: yellow;
}

build

Clone and build Node for analysis:

$ git clone https://github.com/joyent/node.git
$ cd node
$ export GYP_DEFINES="v8_enable_disassembler=1 v8_object_print=1"
$ ./configure
$ make -j4
@ekashida
ekashida / index.html
Created March 5, 2014 09:22
datatype-xml-parse path weirdness
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&2.8.2r1/build/utilities/utilities.js&2.8.2r1/build/container/container-min.js&2.8.2r1/build/menu/menu-min.js&2.8.2r1/build/element/element-min.js&2.8.2r1/build/button/button-min.js&2.8.2r1/build/tabview/tabview-min.js&3.3.0/build/yui/yui-min.js&3.3.0/build/datatype/datatype-xml-parse-min.js"></script>
<script type="text/javascript" src="http://yep.video.yahoo.com/js/3/videoplayer-min.js"></script>
<script type="text/javascript">
YUI().use('videoplayer', 'console', 'node', function(Y){
@ekashida
ekashida / index.html
Created March 5, 2014 09:18
datatype-xml-parse path weirdness
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&2.8.2r1/build/utilities/utilities.js&2.8.2r1/build/container/container-min.js&2.8.2r1/build/menu/menu-min.js&2.8.2r1/build/element/element-min.js&2.8.2r1/build/button/button-min.js&2.8.2r1/build/tabview/tabview-min.js&3.3.0/build/yui/yui-min.js&3.3.0/build/datatype/datatype-xml-parse-min.js"></script>
<script type="text/javascript" src="http://yep.video.yahoo.com/js/3/videoplayer-min.js"></script>
<script type="text/javascript">
YUI().use('videoplayer', 'console', 'node', function(Y){
var obj = new Object();
obj.id='player';
@ekashida
ekashida / index.html
Last active January 4, 2016 21:19
loader performance tests
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>loader performance tests</title>
</head>
<body>
<h1>tests</h1>
<ul>