Skip to content

Instantly share code, notes, and snippets.

@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: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: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
@ekashida
ekashida / gist:5780214
Last active May 13, 2020 05:31
Load testing configuration on MacBook Pro Retina, Mid 2012 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3

Default values

$ sysctl kern.maxfiles
kern.maxfiles: 12288

$ sysctl kern.maxfilesperproc
kern.maxfilesperproc: 10240

$ ulimit -n
<!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.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>
@ekashida
ekashida / setup.js
Last active January 4, 2016 21:19
setup for perf testing yui loader
function getTime () {
return new Date().getTime();
}
function patchLoader (Y, loader) {
var YUI = Y.config.global.YUI,
seq = 0,
methods,
current,
perf,
@ekashida
ekashida / index.html
Last active January 4, 2016 21:19
perf test disable populate with both core and application modules
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>perf test disable populate with both core and application modules</title>
</head>
<body>
<script src="https://rawgithub.com/ekashida/8679996/raw/12ac7814ea05341584e47db16c6ddaf148fd31bf/setup.js"></script>
<script src="https://rawgithub.com/ekashida/yui3/perf-hooks-disable-populate-built/build/yui/yui-debug.js"></script>
<script src="https://s.yimg.com/zz/combo?os/mit/td/td-server-my-0.1.548/asset-loader-988bf153.js"></script>
@ekashida
ekashida / index.html
Last active January 4, 2016 21:18
perf test baseline with both core and application modules
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>perf test baseline with both core and application modules</title>
</head>
<body>
<script src="https://rawgithub.com/ekashida/8679996/raw/12ac7814ea05341584e47db16c6ddaf148fd31bf/setup.js"></script>
<script src="https://rawgithub.com/ekashida/yui3/perf-hooks-built/build/yui/yui-debug.js"></script>
<script src="https://s.yimg.com/zz/combo?os/mit/td/td-server-my-0.1.548/asset-loader-988bf153.js"></script>