Skip to content

Instantly share code, notes, and snippets.


Andrea Ercolino aercolino

View GitHub Profile
yoavniran /
Last active Jul 4, 2022
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
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 / demo.htm
Created Feb 10, 2012
Cross-Origin Resource Sharing (CORS) AJAX Requests Between jQuery And Node.js
View demo.htm
<!DOCTYPE html>
<title>Cross-Origin Resource Sharing (CORS) With jQuery And Node.js</title>
Cross-Origin Resource Sharing (CORS) With jQuery And Node.js