Skip to content

Instantly share code, notes, and snippets.

View kevin51jiang's full-sized avatar
👌
gottem

Kevin Jiang kevin51jiang

👌
gottem
View GitHub Profile
@kevin51jiang
kevin51jiang / spicyPrereqs.md
Last active January 21, 2024 04:46
Spicy Prereqs

Here are some examples of spicily formatted prereqs in the UW course calendar:

At least 1.5 units in CLAS and/or GRK and/or LAT
Level at least 1A Civil, Environmental or Geological Engineering.
Level at least 2A Civil Engineering or (ENVE 224 or GEOE 224; Level at least 3B Environmental or Geological Engineering).
ARCH 262 or ARCH 260/163 and ARCH 276
Not open to General Mathematics students
A grade of 75% in each of FINE 300, 301, 302, 303; a cumulative Fine Arts average of 75%; Level at least 4A Honours Fine Arts Studio Practice.
MSCI 131; One of CHE 220, CIVE 224, ECE 316, ENVE 224, ME 202, MSCI 252 or 253, MTE 201, STAT 206, 231, 241, or SYDE 212.
@kevin51jiang
kevin51jiang / text.md
Created April 19, 2023 21:06
TIL 1: How to Run Unsafe-Eval/remote code in Google Chrome MV3

Recently, in MV3, google supposedly outlawed running remote code in extensions. While it may be unsafe, there's also valid business reasons for wanting to.

Here's a few steps on how to do it currently, as of 2023-04-19.

  1. Create a sandbox html page, for executing arbitrary code.
  2. create a tab that acts as an intermediary between bgsw and the sandbox. Embed the iframe of sandbox in the tab.
  3. create a background service worker (bgsw) such that it creates the tab as an offscreen document. ( https://developer.chrome.com/docs/extensions/reference/offscreen/

Then, to run the code in the background.

@kevin51jiang
kevin51jiang / Purple Stack.md
Last active September 28, 2022 14:47
Full stack technology stack using only products that are Purple

Purple:

  • Issue management: Linear.app
  • API / Network request builder: Insomnia.app
  • Static content generation: Gatsby
  • Code editor: VSCode with Linear theme
  • Billing: Stripe
  • Video conferencing: Microsoft Teams

Not Purple:

@kevin51jiang
kevin51jiang / tej4m-circuit-portfolio.md
Last active January 25, 2021 21:10
Ayah. For use with pandoc and beamer to turn into a pdf presentation.
title author date theme
TEJ4M Circuit Portfolio
Kevin Jiang
April 18, 2019
CambridgeUS

LED

@kevin51jiang
kevin51jiang / template.cpp
Last active January 1, 2019 16:20 — forked from sananth12/template.cpp
Competitive programming template (C++)
#include <iostream>
#include <cmath>
#include <algorithm>
#include <limits>
#include <vector>
#include <bitset>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <time.h>
@kevin51jiang
kevin51jiang / Main.java
Created March 19, 2018 04:34
For the "NOT ENOUGH SERVERS" problem on DMOJ.
package pkg2011_s1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
*
* @author Kevin Jiang
@kevin51jiang
kevin51jiang / CCC00J1.java
Created March 13, 2018 16:18
Some CP thing
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
* You know what's better than a bucket that wraps an arraylist?
*
* A BucketBucket which wraps an array of buckets which each wraps an ArrayList.
* @author Kevin Jiang
DJ DJ with bbfjskdkjgnfkdmrb