Skip to content

Instantly share code, notes, and snippets.

@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>
@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 / 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
loader performance tests
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>loader performance tests</title>
</head>
<body>
<h1>tests</h1>
<ul>
@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
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){

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.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;
}
<!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 / 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