Skip to content
View nortonwong's full-sized avatar

Block or report nortonwong

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. advent advent Public

    adventofcode.com

    JavaScript

  2. nortonwong.github.io nortonwong.github.io Public

    🏡

    CSS

  3. oauth.js oauth.js
    1
    await (async () => {
    2
    	const formUrlEncode = params => Object.entries(params).map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`).join(`&`)
    3
    	const auth = `Bearer ` + await fetch(`https://www.example.com/api/oauth2`, {
    4
    		method: 'POST',
    5
    		headers: {
  4. annotate.js annotate.js
    1
    (() => {
    2
    	const wrap = (prefix, suffix=prefix) => {
    3
    		const pref = prefix instanceof Function ? prefix : () => prefix;
    4
    		const suff = suffix instanceof Function ? suffix : () => suffix;
    5
    		return e => e.innerHTML = `${pref(e)}${e.innerHTML}${suff(e)}`;