Skip to content

Instantly share code, notes, and snippets.

View jpoechill's full-sized avatar

Po Rith jpoechill

View GitHub Profile
git rm -r --cached .
git add .
git commit -m "fixing .gitignore"
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active June 10, 2025 19:43
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@mudge
mudge / eventemitter.js
Last active May 12, 2025 15:15
A very simple EventEmitter in pure JavaScript (suitable for both node.js and browsers).
/* Polyfill indexOf. */
var indexOf;
if (typeof Array.prototype.indexOf === 'function') {
indexOf = function (haystack, needle) {
return haystack.indexOf(needle);
};
} else {
indexOf = function (haystack, needle) {
var i = 0, length = haystack.length, idx = -1, found = false;