Skip to content

Instantly share code, notes, and snippets.

View surprisetalk's full-sized avatar

Taylor Troesh surprisetalk

View GitHub Profile
@surprisetalk
surprisetalk / flatten.js
Created March 6, 2018 01:55
Flatten Integers
// FLATTEN INTEGERS /////////////////////////////////////////////////////////////////////
const flattenIntegers = ints =>
///// Transforms nested lists of integers into a flat list of integers.
///// e.g. 1 -> error
///// e.g. [ 1 ] -> [1 ]
///// e.g. [[1,2,[3]],4] -> [1,2,3,4]
{
const concatLists = lists =>
Verifying my Blockstack ID is secured with the address 1K6Gi3PMSUNhwZ8iCKPwVgxe9CPaQhUtRw https://explorer.blockstack.org/address/1K6Gi3PMSUNhwZ8iCKPwVgxe9CPaQhUtRw
@surprisetalk
surprisetalk / hn-gpt-free.js
Created March 23, 2023 13:00
Userscript to hide any HackerNews story with "GPT" in its title.
// ==UserScript==
// @name HackerNews GPT-Free Feed
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hides any Hacker News story with "GPT" in its title.
// @author Taylor Troesh
// @include https://news.ycombinator.com/*
// @grant none
// ==/UserScript==