Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrea Ercolino aercolino

View GitHub Profile
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active Jul 4, 2022
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
View ultimate-ut-cheat-sheet.md
@NickGard
NickGard / safari-focus-polyfill.js
Last active Jun 30, 2022
Safari Focus Polyfill
View safari-focus-polyfill.js
(function() {
var capturedEvents = [];
var capturing = false;
var redirectedFocusTarget = null;
function getEventTarget(event) {
return event.composedPath()[0];
}
function captureEvent(e) {
@bennadel
bennadel / demo.htm
Created Feb 10, 2012
Cross-Origin Resource Sharing (CORS) AJAX Requests Between jQuery And Node.js
View demo.htm
<!DOCTYPE html>
<html>
<head>
<title>Cross-Origin Resource Sharing (CORS) With jQuery And Node.js</title>
</head>
<body>
<h1>
Cross-Origin Resource Sharing (CORS) With jQuery And Node.js
</h1>