Skip to content

Instantly share code, notes, and snippets.

Peter Bengtsson peterbe

Block or report user

Report or block peterbe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View inline-perf-script.html
<script>
// util for setting performance marks and mesaures
var mdn=window.mdn||{};mdn.perf={getDuration:function(e){"use strict";if(void 0!==performance.getEntriesByName)return performance.getEntriesByName(e)[0].duration;console.error("performance.getEntriesByName is not supported by your user-agent")},setMark:function(e){"use strict";if(void 0!==performance.mark)try{performance.mark(e)}catch(e){console.error("Error while setting performance mark: ",e)}else console.error("performance.mark is not supported by your user-agent")},setMeasure:function(e){"use strict";void 0!==performance.measure?performance.measure(e.measureName,e.startMark,e.endMark):console.error("performance.measure is not supported by your user-agent")}};
/* util specifically for postMessages sent from the
`head` of the interactive examples iframe */
function handlePerfMarks(e){e.measureName?(window.mdn.perf.setMark(e.markName),window.mdn.perf.setMeasure({measureName:e.measureName,startMark:e.startMark,endMark:e.endMark
View bug1566426.diff
6918c6918
< background-image: url("../../img/embed/promos/sauce-labs-wiki-a.df816016e46f.png");
---
> background-image: url("data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAUsAAABjCAMAAAAl4dJDAAADAFBMVEVMaXEjHx8jICAkHyIkHyEjICAzMzMjICAlHyIjHyAjICAjHyAjICAjHyA/Hz8jIiMkICEsISEkHyA4ODglHyIjICAjHyD///8jHyAkHyAmISFtbW0jHyAjHyIjHyAjHyEkHyEsIyMjHyAjICAjHyAjHyAjHyAjHyAzMzMmJSYkHyAjHyI/Pz8jHyAjHh8jIyMjHyAkISEjHyEjHyAsLCwlICAkICAjIyMkHyAjHyAqKiokHiIjHyElHyAkICIjHyAnIiIjHyAjHyAjICAjISEjHyAjHyEjHyEjHyAjHyAmJiYjHyAnIiIkHyEnJycoHyMtKS0jHyAkIyQjHyAjHyEkHyIkHyIjHyAjHyAjHyAjHyEqHyomHyIjHyAjICAjISEnJyciHyAqIiIjHyAjHyAkHyQjICAkIyMjHyAkICAlICAkICAkHyAjHyAjHyEjIyMlHyIkISEjHyAjHyAkJCQjHyAqKiojHyAjHyAkHyEkHyEkICAoISEkHyEjHiEmIiIjHyAjICAmJiYjICAkICAjHyEjHyAjICAlISGD0vUlIiIlJSUjHyAkHyEkICAjHyAjICAjHyAkISGC0/UjHyAjHyEmIiIkHyEvNjwlIiIkHyAqLjEjHyAkICAjICAjHyAjICAoKS0jIiOC0vQjHyBCWWdytNEjICEtMTYpLTA3RU222Aa32QYjIiOC0vWI1PaL5/+C0fWE0fWD0fWE1PmC0fWG1PiC0vaM2f8jHyAtMTQrKR9IYnG22AZDRhosKx4sKh+32Aa53AqnxQgxMR622Ab//1W22QeE0/c
View css-selectors.diff
1,23d0
< #content-main.full
< #delete-revision label
< #delete-revision textarea
< #doc-rendering-in-progress.warning
< #doc-rendering-in-progress.warning a
< #doc-rendering-in-progress.warning i[class^="icon-"]
< #doc-rendering-in-progress.warning:before
< #doc-rendering-scheduled.warning
< #doc-rendering-scheduled.warning a
View selectors.diff
1a2
> active
9a11,48
> bc-browser-name
> bc-browsers
> bc-footnotes
> bc-github-link
> bc-head-icon-chrome
> bc-head-icon-chrome_android
> bc-head-icon-edge
View bug1566426.diff
3919a3920
> @charset "UTF-8";
6918c6919
< background-image: url("data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAUsAAABjCAMAAAAl4dJDAAADAFBMVEVMaXEjHx8jICAkHyIkHyEjICAzMzMjICAlHyIjHyAjICAjHyAjICAjHyA/Hz8jIiMkICEsISEkHyA4ODglHyIjICAjHyD///8jHyAkHyAmISFtbW0jHyAjHyIjHyAjHyEkHyEsIyMjHyAjICAjHyAjHyAjHyAjHyAzMzMmJSYkHyAjHyI/Pz8jHyAjHh8jIyMjHyAkISEjHyEjHyAsLCwlICAkICAjIyMkHyAjHyAqKiokHiIjHyElHyAkICIjHyAnIiIjHyAjHyAjICAjISEjHyAjHyEjHyEjHyAjHyAmJiYjHyAnIiIkHyEnJycoHyMtKS0jHyAkIyQjHyAjHyEkHyIkHyIjHyAjHyAjHyAjHyEqHyomHyIjHyAjICAjISEnJyciHyAqIiIjHyAjHyAkHyQjICAkIyMjHyAkICAlICAkICAkHyAjHyAjHyEjIyMlHyIkISEjHyAjHyAkJCQjHyAqKiojHyAjHyAkHyEkHyEkICAoISEkHyEjHiEmIiIjHyAjICAmJiYjICAkICAjHyEjHyAjICAlISGD0vUlIiIlJSUjHyAkHyEkICAjHyAjICAjHyAkISGC0/UjHyAjHyEmIiIkHyEvNjwlIiIkHyAqLjEjHyAkICAjICAjHyAjICAoKS0jIiOC0vQjHyBCWWdytNEjICEtMTYpLTA3RU222Aa32QYjIiOC0vWI1PaL5/+C0fWE0fWD0fWE1PmC0fWG1PiC0vaM2f8jHyAtMTQrKR9IYnG22AZDRhosKx4sKh+32Aa53AqnxQgxMR622Ab//1W22QeE0/c2Q0qC0fUoKSwlJCZciJ1rp8IjHyCC0fW22AZUeItAVWFsqMR7xOVJZnZci6Blm
View beta.original.css.diff
38,53d37
< }
< .text-content pre {
< border-left-width: 5px;
< }
< .text-content html[dir="rtl"] pre,
< html[dir="rtl"] .text-content pre {
< border-left-width: 0;
< border-right-width: 5px;
< }
View Math_prose.md

Bla bla bla Bla bla bla Bla bla bla Bla bla bla

-- example: example-one


View npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/12.3.1/bin/node',
1 verbose cli '/Users/peterbe/.config/yarn/global/node_modules/.bin/npm',
1 verbose cli 'install'
1 verbose cli ]
2 info using npm@2.15.12
3 info using node@v12.3.1
4 verbose readDependencies loading dependencies from /Users/peterbe/dev/MOZILLA/MDN/kuma/package.json
5 verbose install where, deps [
View backwardscompat.py
# -*- coding: utf-8 -*-
print(u'Pétër')
View gist:fbf4a2ec7fd0a49844f3402fef1ddfb1
2019-06-25 21:05:13.858360 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:14.950445 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:16.048564 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:17.138323 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:18.229215 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:19.316388 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:20.405854 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:21.501893 'Game development (peterbe)' Hit from cloudfront None
2019-06-25 21:05:22.748494 'Game development' Miss from cloudfront None
You can’t perform that action at this time.