Skip to content

Instantly share code, notes, and snippets.

View jermspeaks's full-sized avatar
🐧

Jeremy Wong jermspeaks

🐧
View GitHub Profile
@jermspeaks
jermspeaks / README.md
Last active July 17, 2024 20:40
PowerShell script to test network connections at customer sites to determine if the whitelist is okay.

To convert this PowerShell script into an executable (.exe) file, you can still use PS2EXE as described before:

  1. Install PS2EXE (if you haven't already):

    Install-Module -Name ps2exe
    
  2. Convert the script to an executable:

Invoke-ps2exe .\ping_websites.ps1 .\ping_websites.exe

@jermspeaks
jermspeaks / chinese.txt
Last active July 12, 2024 22:25
Ready to import from Duolingo to Anki (Section 1, Unit 1 - 4)
一 yī;one
一天 yī tiān;one day
七 qī;seven
万 wàn;ten thousand
三 sān;three
上 shàng;up/last/on
上个 shàng ge;last
上个月 shàng ge yuè;last month
上午 shàng wǔ;morning
上学 shàng xué;go to school
@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