Skip to content

Instantly share code, notes, and snippets.

View wc2184's full-sized avatar

William Chan wc2184

View GitHub Profile
@jcubic
jcubic / cdn.md
Last active April 25, 2025 06:58
How to setup a literally free CDN
@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active May 12, 2025 06:22
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@ryan-jr
ryan-jr / lessonsLearned.md
Last active May 2, 2025 15:58
Based around the idea of the missing semester, meant to provide useful information for recent grads.

Useful Things to Know and Where to Find Them

This is loosely based around MIT's idea of the missing CS Semester: https://missing.csail.mit.edu/ as well as the Stanford Problem Solving for the CS Technical Interview https://web.stanford.edu/class/cs9/ and here you'll find links to things that I've found useful in my job search over the last month or so.

Need to Know

General

@zavan
zavan / yt.js
Last active September 9, 2024 14:48
Listening to the YouTube Embed Iframe time change events without polling player.getCurrentTime()
// Load the IFrame Player API code asynchronously.
var tag = document.createElement("script");
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName("script")[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
// Instantiate the Player.
function onYouTubeIframeAPIReady() {
var player = new YT.Player("player", {
@ih2502mk
ih2502mk / list.md
Last active May 12, 2025 17:18
Quantopian Lectures Saved
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active May 11, 2025 17:37
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@baidut
baidut / Mediablock.js
Created July 17, 2019 00:29
use Tampermonkey to block social media website
// ==UserScript==
// @name Mediablock
// @description Closes social media from 7 AM to 6 PM inclusive on weekdays, 6 AM to 10 AM Saturdays, and completely free on Sundays!
// @include https://*.reddit.com
// @include https://*.reddit.com/*
// @include https://*.facebook.com
// @include https://*.facebook.com/*
// @include https://*.twitter.com
// @include https://*.twitter.com/*
// @include https://scratch.mit.edu
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active May 10, 2025 07:25
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@bradtraversy
bradtraversy / npmcrashcourse.txt
Last active December 8, 2024 04:20
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@jimmywarting
jimmywarting / readme.md
Last active April 29, 2025 08:29
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers