Skip to content

Instantly share code, notes, and snippets.

@squarism
squarism / mind_blowing_dev.md
Last active September 22, 2022 17:56
Mind Blowing Dev Youtube Playlist

Mind Blowing Dev Playlist

Software development or related videos with a lasting impact on me. Usually the videos have some novel idea or something very unique at the time when compared to many tech talks.

I'm describing them here for more context (what's the big deal, I've seen this) or to save you some time (for example Linus + Git at Google).

Each video is linked directly but the playlist is the thing most updated.

I can't spoil why this talk is very clever. You'll have to watch it.

@squarism
squarism / zen_progression.md
Last active September 8, 2022 17:46
Zen Progression

Zen Core Progression

A Summary of AMD's Zen Core Tick-Tock progression of multi-threading and single core performance. Each Zen generation is compared to the last one.

Taken from Broken Silicon 169.

Percentage Increases Each Ryzen Generation

| Generation | Single Threading | Multi-Threading |

@squarism
squarism / block_techlead.txt
Created September 4, 2022 22:22
Block TechLead on YouTube
! put this in your uBlock origin My Filters section
! blocking channels (as a millionaire)
youtube.com##[id^="channel-name"]:has(a[href="/c/TechLeadShow"]):upward(.ytd-item-section-renderer)
youtube.com##[id^="channel-name"]:has(a[href="/c/TechLead"]):upward(.ytd-item-section-renderer)
youtube.com##[id^="info-section"]:has(a[href="/c/TechLeadShow"]):upward(.ytd-channel-renderer)
youtube.com##[id^="info-section"]:has(a[href="/c/TechLead"]):upward(.ytd-channel-renderer)
@squarism
squarism / typescript_enums_and_types_03.ts
Created May 31, 2022 22:31
Typescript Enums and Types 03
type AnimalToPet = {
kind: string
target: CalicoCat | SphynxCat | Turtle
}
type Animal = {
appearance: string
}
type CalicoCat = Animal & {
x = 1
// this is not the complete story of closure
// this is entirely lexical scope
const parentFunction = () => {
y = 50
console.log(x += 1)
console.log(y += 1)
const childFunction = () => {
@squarism
squarism / bunny.rb
Created November 6, 2021 22:20
Bunny Munching a 2D plot
# no time to write test, have to puts debug and develop.
# it's terrible
#
# https://coderpad.io/blog/practice-questions-from-our-friends-at-hackbright/
require_relative "./point"
require 'byebug'
class Bunny
attr_reader :munches
@squarism
squarism / schemaless_postgres.txt
Last active October 27, 2021 23:59
Schemaless Postgres
psql=# create table schemaless (
id json,
email json,
active json,
name json,
subscription json
);
CREATE TABLE
@squarism
squarism / the_bikeshed_insight.md
Last active September 15, 2023 22:13
Insight, Advice and Quotables from The Bikeshed Podcast

Self Care

and it's this very interesting little post where he talks about at the end of your day; you want to close the book on it. I think this is especially pointed now that many of us are working from home. For me, this is a new thing. And so, I've been very intentional with trying to put walks at the beginning and end of my day.

But in this particular blog post, he describes a routine that he does where he tidies things up and makes his list for the next day. And then he has a particular phrase that he says, which is "schedule shut down, complete."

294

Tool Sharpening List

Keeping track of very general pain points.

  • I'm not using my fish aliases enough.
  • I need to just switch back to zsh though.
  • It'd be cool to have an abbreviation for lock file resolution. It'd take an argument for the lock file name, probably would be great to have it be very smart (file existence, confirmation prompts, preview).

Make a function to do the authorized_keys dance but it takes an argument for the user.

@squarism
squarism / nice_webserver.py
Created August 26, 2021 05:53
A Nice Webserver
# You probably have python3 on a linux box you have lying around
# Save this as nice_webserver.py
# Run me with python3 nice_webserver.py
# It doesn't do anything bad, read it below
import socketserver
import time
class Server(socketserver.BaseRequestHandler):