Skip to content

Instantly share code, notes, and snippets.

Niels Gerritsen ngerritsen

Block or report user

Report or block ngerritsen

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 checkElementCount.js
// Paste into browser console and hover elements.
(function checkElementCount() {
let current = null;
let counter = null;
function init() {
document.body.addEventListener('mouseover', onMouseOver);
updateCounter(getChildElementCount(document));
}
@ngerritsen
ngerritsen / templateStringVsJsonStringify.js
Last active Oct 24, 2017
Template string vs JSON.stringify test
View templateStringVsJsonStringify.js
'use strict';
const NS_PER_SEC = 1e9;
const MS_PER_NS = 1e6;
const ITEMS = 100000;
const data = getData();
run();
runWithTemplate();
@ngerritsen
ngerritsen / hrTimer.js
Last active Oct 4, 2018
Node hr timer
View hrTimer.js
const NS_PER_SEC = 1000000000;
const NS_PER_MS = 1000000;
function getTimer() {
const time = process.hrtime();
return {
elapsed() {
const [seconds, nanoseconds] = process.hrtime(time);
return (seconds * NS_PER_SEC + nanoseconds) / NS_PER_MS;
@ngerritsen
ngerritsen / napaJsonStringifyParalellisationTest.js
Last active Oct 24, 2017
Napa JSON.stringify parallelisation test
View napaJsonStringifyParalellisationTest.js
'use strict';
const napa = require('napajs');
const NS_PER_SEC = 1e9;
const MS_PER_NS = 1e6;
const NAPA_WORKERS = 6;
const ITEMS = 100000;
const data = getData();
@ngerritsen
ngerritsen / getChromeUserGlobalVars.js
Last active Oct 24, 2017
Get all global variables in Chrome
View getChromeUserGlobalVars.js
(function () {
// Update this list with all libraries/global variables you DONT want to see. For instance if you DO want to see jQuery, remove it from this list.
const keysToFilter = ["$","jQuery","Modernizr","SS","ZeroClipboard","Hammer","CobrowserChatApi","_cobrowserapi","GoogleAnalyticsObject","ga","gaplugins","gaGlobal","scan","external","chrome","document","speechSynthesis","caches","ondeviceorientationabsolute","ondevicelight","localStorage","sessionStorage","webkitStorageInfo","indexedDB","webkitIndexedDB","ondeviceorientation","ondevicemotion","crypto","postMessage","blur","focus","close","onautocompleteerror","onautocomplete","onunhandledrejection","onrejectionhandled","applicationCache","performance","onunload","onstorage","onpopstate","onpageshow","onpagehide","ononline","onoffline","onmessage","onlanguagechange","onhashchange","onbeforeunload","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresiz
@ngerritsen
ngerritsen / README.md
Last active Sep 4, 2019 — forked from nickbudi/README.md
Counter-Strike: Global Offensive config
View README.md

Niels' CS:GO config

This was once forked from Budi's CS:GO config.

Launch Options

-novid -nojoy +exec autoexec.cfg

Enter launch options at

You can’t perform that action at this time.