Skip to content

Instantly share code, notes, and snippets.

@vinbrule
vinbrule / load webarchieve locally swift mac.swift
Created July 22, 2020 15:26
load webarchieve locally swift mac
import AppKit
import PlaygroundSupport
import WebKit
var webView: WKWebView!
webView = WKWebView(frame: CGRect(x: 0, y: 0, width: 600, height: 800.0))
var filePath = URL.init(fileURLWithPath: "/Users/van/Downloads/firefox/01-interview preparation/leetcode/facebook/Longest Substring Without Repeating Characters - LeetCode Articles.webarchive")
print(filePath)
let fileDirectoryURL = filePath.deletingLastPathComponent()
@vinbrule
vinbrule / analytic alternative .txt
Created August 18, 2020 15:27
alternative to google analytics
https://github.com/Open-Web-Analytics/Open-Web-Analytics
https://matomo.org/
https://github.com/matomo-org/matomo
https://github.com/usefathom/fathom
https://www.goatcounter.com/
https://plausible.io/
https://github.com/PostHog/posthog
https://www.usertrack.net/
@vinbrule
vinbrule / grokking_to_leetcode.md
Created August 28, 2022 12:51 — forked from tykurtz/grokking_to_leetcode.md
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

@vinbrule
vinbrule / grokking_to_leetcode.md
Created August 28, 2022 12:51 — forked from tykurtz/grokking_to_leetcode.md
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