Skip to content

Instantly share code, notes, and snippets.

@ekashida
ekashida / axis-eol.html
Last active December 18, 2015 11:59
axis eol html mock
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Axis EOL</title>
<style>
#rich-container {
width: 440px;
}
</style>
@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
11:41:10 dhcpx-208-90:yeti $ yeti test/functional/fixture/io.html
Creating a Hub. Open `yeti --server` in another Terminal to reuse browsers for future batches.
Waiting for agents to connect at http://192.168.56.1:9000
...also available locally at http://localhost:9000
When ready, press Enter to begin testing.
Agent connected: Chrome (27.0.1453.110) / Mac OS from 127.0.0.1
✓ Testing started on Chrome (27.0.1453.110) / Mac OS
✓ Agent completed: Chrome (27.0.1453.110) / Mac OS
@ekashida
ekashida / prime.py
Created July 4, 2013 00:24
Find the 1000th prime number without defining any functions
# Check for primes starting at 2 since 1 is not prime by definition
number = 2
# Store all primes in this list
primes = []
# Keep looking for primes until we find 1000 of them
while len(primes) < 1000:
# Assume the number is prime until proven otherwise
is_prime = True
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Computed values of scoped CSS</title>
</head>
<body>
<div>
This text should be visible. It should not have a green background color.
</div>
<!DOCTYPE html>
<html>
<body>
<div id=foo></div>
<script src="http://yui.yahooapis.com/3.11.0/build/yui/yui-min.js"></script>
</body>
</html>
@ekashida
ekashida / gist:6391773
Created August 30, 2013 16:35
Inheriting default combo configs
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<script src="http://yui.yahooapis.com/3.11.0/build/yui/yui-debug.js"></script>
<script>
YUI({
(function (w, d, undefined) {
var srp = d.getElementById('srp');
// do something
}(window, document))
@ekashida
ekashida / index.html
Last active January 4, 2016 10:19
perf test baseline with only core modules
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>perf test baseline with only core 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>
@ekashida
ekashida / index.html
Last active January 4, 2016 20:59
perf test disable populate with only core modules
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>perf test disable populate with only core 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>