Skip to content

Instantly share code, notes, and snippets.

View pmdartus's full-sized avatar
🤣

Pierre-Marie Dartus pmdartus

🤣
View GitHub Profile
@pmdartus
pmdartus / 40.html
Last active October 16, 2015 17:10
Diff Apple refurb pages
<!DOCTYPE html>
<html lang="en-US" class="en-us amr nojs en us">
<head>
<meta name="viewport" content="width=1024" />
<!-- Dynamic page title (extracted from the node, product, etc.) -->
<title>Refurbished Mac - Apple Certified - Apple</title>
<meta charset="utf-8" />
@pmdartus
pmdartus / t.timeline
Created April 24, 2016 20:38
This is a test gist
This file has been truncated, but you can view the full file.
[{"pid":2423,"tid":13631,"ts":373590439006,"ph":"X","cat":"toplevel","name":"MessagePumpLibevent::OnLibeventNotification","args":{"fd":3},"dur":9372,"tdur":80,"tts":160026},
{"pid":2423,"tid":13631,"ts":373590448298,"ph":"X","cat":"ipc,toplevel","name":"ChannelReader::DispatchInputData","args":{"class":60,"line":72},"dur":27,"tdur":6,"tts":160072,"bind_id":"0x5a26fb02","flow_in":true},
{"pid":2423,"tid":13631,"ts":373590939048,"ph":"X","cat":"toplevel","name":"MessagePumpLibevent::OnLibeventNotification","args":{"fd":3},"dur":140,"tdur":30,"tts":160123},
{"pid":2423,"tid":13631,"ts":373590939154,"ph":"X","cat":"ipc,toplevel","name":"ChannelReader::DispatchInputData","args":{"class":60,"line":72},"dur":8,"tdur":2,"tts":160135,"bind_id":"0x5a298d02","flow_in":true},
{"pid":2423,"tid":13631,"ts":373591439189,"ph":"X","cat":"toplevel","name":"MessagePumpLibevent::OnLibeventNotification","args":{"fd":3},"dur":54,"tdur":26,"tts":160167},
{"pid":2423,"tid":13631,"ts":373591439210,"ph":"X","cat":"ipc,toplevel","name"
@pmdartus
pmdartus / index.html
Created June 12, 2016 07:19 — forked from anonymous/index.html
Inner Button Step counter using flexbox // source https://jsbin.com/gorelu
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Step counter using flexbox">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Inner Button</title>
<style id="jsbin-css">
.stepper-input {
display: flex;
@pmdartus
pmdartus / index.html
Created June 12, 2016 07:35 — forked from anonymous/index.html
JS Bin Site header using flexbox // source https://jsbin.com/rekilad
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Site header using flexbox">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html {
font-family: arial, san-serif;
@pmdartus
pmdartus / index.html
Created June 12, 2016 08:54 — forked from anonymous/index.html
JS Bin Card group with vertical alignment // source https://jsbin.com/powosu
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Card group with vertical alignment">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html {
font-family: sans-serif
@pmdartus
pmdartus / index.js
Created October 15, 2016 13:13
Node In The Box - Test script
console.log("this is a test")
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@pmdartus
pmdartus / test.md
Last active March 1, 2018 08:06
test
  • #f03c15 #f03c15
  • #c5f015 #c5f015
  • #1589F0 #1589F0
@pmdartus
pmdartus / readme.md
Created November 8, 2018 17:13
Custom Element implementation performance in jsdom

Environment: Node v8.11.3, Macbook Pro 2015 2.8 GHz 16 GB RAM

Results:

Test Case custom-elements master
dom/compare-document-position/compare ancestor 20,114 ops/sec ±4.17% 19,189 ops/sec ±4.58%
dom/compare-document-position/compare descendant 18,208 ops/sec ±3.29% 17,593 ops/sec ±5.80%
dom/compare-document-position/compare siblings 462,052 ops/sec ±54.01% 542,362 ops/sec ±38.72%
dom/construction/createComment 1,066,817 ops/sec ±2.62% 1,060,437 ops/sec ±1.34%
@pmdartus
pmdartus / performance.md
Created October 18, 2019 05:46
Constructor & prototype reform
Test name Before (ops/sec) After (ops/sec) Delta
dom/compare-document-position/compare ancestor 19,973 19,995 0.11%
dom/compare-document-position/compare descendant 21,624 20,156 -6.79%
dom/compare-document-position/compare siblings 1,138,911 1,128,045 -0.95%
dom/construction/createComment 1,446,494 1,337,418 -7.54%
dom/construction/createDocumentFragment 1,515,799 1,376,833 -9.17%
dom/construction/createElement 223,089 185,578 -16.81%
dom/construction/createEvent 208,710 199,711 -4.31%
dom/construction/create