Skip to content

Instantly share code, notes, and snippets.

As we were preparing Playwright 1.1.0, I learned quite a lot about Web Proxies. Below is the summary of my findings.

TIL: WEB Proxies

Reverse Web Proxy vs Forwarding Web Proxy

There are two groups of proxies that drive internet:

@csabapalfi
csabapalfi / requestIdleCallback.js
Created March 13, 2019 23:08 — forked from paullewis/requestIdleCallback.js
Shims rIC in case a browser doesn't support it.
/*!
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
(function (history, trackingId, options) {
const getParameterByName = (paramName) => {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
return val[1] || undefined;
}
}
@csabapalfi
csabapalfi / richhickey.md
Created April 18, 2018 13:19 — forked from prakhar1989/richhickey.md
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

@csabapalfi
csabapalfi / use-strict.sed
Created November 12, 2015 11:02 — forked from niallsmart/use-strict.sed
Sed script to add "use strict"; to the top of JavaScript files
#
# Sed script to add "use strict"; to the top of files that don't
# already have it there.
#
# use like this: find . -name \*.js | xargs -n 1 sed -f use-strict.sed -i ''
#
1 { s/use strict/&/
t
i\
'use strict';