Skip to content

Instantly share code, notes, and snippets.

View jermspeaks's full-sized avatar
🐧

Jeremy Wong jermspeaks

🐧
View GitHub Profile
@jermspeaks
jermspeaks / BookFinder.js
Created January 30, 2024 21:45
Using the QuickAdd Obsidian plugin, the BookFinder uses Google API Books v1 to fetch the book and make a note
const notice = (e) => new Notice(e, 5e3);
const log = (e) => console.log(e);
const logError = (e) => console.error(e);
const GOOGLE_BOOKS_API_URL = "https://www.googleapis.com/books/v1/volumes";
const GOOGLE_BOOKS_TITLE_TERM = "intitle:";
function replaceIllegalFileNameCharactersInString(e) {
return e.replace(/[\\,#%&\{\}\/*<>?$\'\":@]*/g, "");
}
@jermspeaks
jermspeaks / The Technical Interview Cheat Sheet.md
Created June 22, 2023 16:54 — forked from tsiege/The Technical Interview Cheat Sheet.md
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!






\

[
{
"SiteNumber": "50009.*A",
"Type": "AIRPORT",
"LocationID": "'ADK",
"EffectiveDate": "3/2/17",
"Region": "AAL",
"State": "AK",
"StateName": "ALASKA",
"County": "ALEUTIANS WEST",
@jermspeaks
jermspeaks / linked_list.py
Created August 25, 2022 16:53
Data Structures in Python
# Node for LinkedList
class Node:
def __init__(self, value):
self.value = value
self.next = null
# A data structure that is a series of nodes,
# and each node points to the next node of the list
# Linked lists use the “last-in-first-out” method (similar to a stack)where nodes are added to and deleted from the same end.
<%*
const dateFormat = "YYYY-MM-DD";
const dateBasisStr = await tp.system.prompt("When is the meeting?");
if (dateBasisStr) {
function createMessage(daysBefore, dateFormat, dateBasisStr) {
let parseResult;
let newDate;
let parseResultLink;
let nlDatesPlugin = app.plugins.getPlugin('nldates-obsidian');
https://crontab.guru/

NET303: Livin' on the CDN Edge!

  1. Intro

Openness: interconnected - not locking you in Performance: low latency Simplicity Reach - 134 points of presence and 13 subsea cable investments around the globe

  1. Network & Architecture
@jermspeaks
jermspeaks / IoC-and-DI-with-Castle-Windsor-Container-part-1.md
Last active May 21, 2019 09:39
Inversion of Control and Dependency Injection with Castle Windsor Container

Inversion of Control and Dependency Injection with Castle Windsor Container - Part I

Published: 24 Jul 2007.
By: Simone Busoli

Inversion of Control (IoC) and Dependency Injection (DI) are two related practices in software development which are known to lead to higher testability and maintainability of software products. While some people employ them daily in their work, many others still don't know much about them, mostly because they require in the former a shift in the usual thinking process.

This article introduces these notions in a simple and affordable fashion, with a real example which evolves step by step to take advantage from IoC and DI, leveraging the features offered by an open source framework called Castle Project.

Inversion of Control/Dependency Injection Series

@jermspeaks
jermspeaks / opendir.md
Created February 17, 2019 07:19
Manually Searching OpenDirectories on Google

Manually Searching OpenDirectories on Google

For videos/movies/tvshows :

intext:\"Search Term\" intitle:\"index.of\" +(wmv|mpg|avi|mp4|mkv|mov) -inurl:(jsp|pl|php|html|aspx|htm|cf|shtml)

Images :

# brew install switchaudio-osx
headphoneson() {
SwitchAudioSource -t "input" -s "<NAME OF DEVICE>"
SwitchAudioSource -t "output" -s "<NAME OF DEVICE>"
}
headphonesoff() {
SwitchAudioSource -t "input" -s "MacBook Pro Microphone"
SwitchAudioSource -t "output" -s "MacBook Pro Speakers"
}