Skip to content

Instantly share code, notes, and snippets.

View HoldenLucas's full-sized avatar
👀

Holden Lucas HoldenLucas

👀
View GitHub Profile
@quad
quad / 0-unnamed-architecture.md
Last active April 14, 2024 05:45
What is this architecture called?

What is this architecture called?

I rarely see the classical three-tier architecture in the wild; I frequently see a different architecture.

I don't know this architecture's name. Do you?

The Three-Tier Architecture

The "three-tier architecture" has been the reference pattern for Internet services:

Why not: from Common Lisp to Julia

This article is a response to mfiano’s From Common Lisp to Julia which might also convey some developments happening in Common Lisp. I do not intend to suggest that someone coming from a Matlab, R, or Python background should pickup Common Lisp. Julia is a reasonably good language when compared to what it intends to replace. You should pickup Common Lisp only if you are interested in programming in general, not limited to scientific computing, and envision yourself writing code for the rest of your life. It will expand your mind to what is possible, and that goes beyond the macro system. Along the same lines though, you should also pickup C, Haskell, Forth, and perhaps a few other languages that have some noteworthy things to teach, and that I too have been to lazy to learn.

/I also do not intend to offend anyone. I’m okay with criticizing Common Lisp (I myself have done it below!), but I want t

2019-05-18

Jonathan Blow on societal collapse

It's uncanny how closely this talk follows a line of reasoning I've been working on lately. If you're copied here, we may have discussed one or more of its aspects

https://www.youtube.com/watch?v=pW-SOdj4Kkk

(Jonathan Blow is an independent video game developer, speaking here at a conference in Moscow.)

@rain-1
rain-1 / Modelling an Uncertain World.md
Last active August 19, 2023 06:16
Modelling an Uncertain World

I have included working code examples that can be run throughout, as well as graphs. I hope this helps make this easier to understand in a more hands on way.

The setup

Suppose you know that there are 10 balls in an urn, some are red and some are blue. So there are 11 different possible models for this situation:

  • M0: 0 red, 10 blue
  • M1: 1 red, 9 blue
  • ...
  • M10: 10 red, 0 blue
@cessen
cessen / helix_notes.md
Last active March 9, 2024 15:19
Helix notes

My personal notes on using Helix

I've started using Helix as my main editor, and I wanted a place to jot down notes as I run into things. So this is that spot. For anyone stumbling on this, please keep in mind that over-all I'm really liking Helix, which isn't well reflected in the notes below.

Please, no comments here

Please don't add comments to this gist. I do want to discuss these items, but not here. This is just a place for my personal notes, to help me keep track of my thoughts. (Unfortunately, Github doesn't support disabling comments on gists.)

If you're reading this and want to comment on something, feel free to open up an issue on the Helix repo if it's significant enough, or just ping me in the Helix matrix room otherwise.

@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active July 25, 2024 13:38
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@rpearce
rpearce / .ghci
Last active July 10, 2024 03:49
Flake for using Haskell in nix develop
:def hoogle \x -> return $ ":!hoogle --count=15 \"" ++ x ++ "\""
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
:set -Wall
:set -fno-warn-type-defaults -ferror-spans -freverse-errors -fprint-expanded-synonyms
:set prompt "\ESC[0;32m%s\n\ESC[m[ghci]\ESC[38;5;172mλ \ESC[m"
:set prompt-cont " \ESC[38;5;172m> \ESC[m"
@GDsouza
GDsouza / keymap.c
Last active July 26, 2023 08:22
Ploopy (momentary) drag scroll keymap
/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
* Copyright 2019 Sunjun Kim
* Copyright 2020 Ploopy Corporation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@Phate6660
Phate6660 / rust recommendations and alternatives.md
Last active May 29, 2024 12:35
My growing list of Rust programs to use.
@mvetsch
mvetsch / gist:9bfdee7c56140eae2baa0be711fc8ded
Last active February 6, 2024 08:36
Wireless configuration with nmcli (NetworkManager ) for ETHZ (eth / eduroam)
nmcli connection add type wifi con-name eduroam ifname wlp3s0 ssid "eduroam" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
nmcli connection add type wifi con-name eth ifname wlp3s0 ssid "eth" -- wifi-sec.key-mgmt wpa-eap 802-1x.eap ttls 802-1x.identity [CUT]@student-net.ethz.ch 802-1x.phase2-auth mschapv2 802-1x.domain-suffix-match radius-service.ethz.ch
# activate with
nmcli connection up eduroam --ask
nmcli connection up eth --ask