Skip to content

Instantly share code, notes, and snippets.

View thunderer's full-sized avatar
ThunderStruck!

Tomasz Kowalczyk thunderer

ThunderStruck!
View GitHub Profile
@EllyLoel
EllyLoel / reset.css
Last active April 13, 2024 18:14
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/
@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@dukeofharen
dukeofharen / dazzamack-edm.txt
Created August 20, 2019 10:33
Dazzamack's original top 1000 favourite EDM tracks (originally from listology.com, but that site is down)
Massive Attack - Unfinished Sympathy [Paul Oakenfold Mix] (1991)
{Downtempo, Trip Hop}
In my opinion, the best electronic track I've heard. A "Massive" tune. From their debut album “Blue Lines”, this Bristol act fused Hip Hop elements & Electronica into a style which would later be known as Trip-Hop. Shara Nelson’s R&B vocals are simply awesome in this tune. Even the music video is superb, with Shara just walking through some crappy US streets singing away, oblivious to all the crap around her. This track was the first of many great tunes by Massive Attack. Tricky from Massive Attack went on to a great solo career and Massive Attack also influenced future trip hop artists like Portishead, DJ Shadow & Sneaker Pimps.
Age Of Love - The Age Of Love [Watch Out For Stella Mix] (1990, 1992)
{Trance}
Originally released in 1990, it is generally accepted, along with Dance 2 Trance’s “We Come In Peace” as the first "true" trance tracks. However, KLF’s 1988 track “What Time Is Love? (Pure Trance 1)” could be consider
@dukeofharen
dukeofharen / darktremor-trance.txt
Last active December 8, 2022 04:45
Darktremor's original top 400 favourite trance tracks (originally from listology.com, but that site is down)
_These are the rules for posting recommendations. If you break one, I will ignore you. Read them before making a suggestion:
1.If you suggest even one track that is already on the list, I will ignore all other tracks in your suggested list. Use edit/find (on this page), or hit control-f to search out tracks before recommending them. Don't just whip your playlist off into the comments, I want you to make sure it's a)better than some of the tracks on this list, and b)NOT ALREADY ON IT, before you suggest I add it. This list is massive, and the base of tracks it was selected out of is even bigger. I don't mean to be a jerk about it, but I don't have the time to sift through records that are already on the list. Plus, that tells me you didn't think about your suggestion.
2.If you've been listening to trance for less than 9 months, you have a DJ Mystik track on your computer anywhere, or you still (seriously) find tracks by typing "trance" or "techno" into a file sharing program, then please don't suggest anythi
@marcan
marcan / linux.sh
Last active December 1, 2023 15:18
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@joepie91
joepie91 / blockchain.md
Last active June 25, 2023 08:40
Is my blockchain a blockchain?

Your blockchain must have all of the following properties:

  • It's a merkle tree, or a construct with equivalent properties.
  • There is no single point of trust or authority; nodes are operated by different parties.
  • Multiple 'forks' of the blockchain may exist - that is, nodes may disagree on what the full sequence of blocks looks like.
  • In the case of such a fork, there must exist a deterministic consensus algorithm of some sort to decide what the "real" blockchain looks like (ie. which fork is "correct").
  • The consensus algorithm must be executable with only the information contained in the blockchain (or its forks), and no external input (eg. no decisionmaking from a centralized 'trust node').

If your blockchain is missing any of the above properties, it is not a blockchain, it is just a ledger.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
@Icelandjack
Icelandjack / Constraints.org
Last active April 2, 2024 20:22
Type Classes and Constraints

Reddit discussion.

Disclaimer 1: Type classes are great but they are not the right tool for every job. Enjoy some balance and balance to your balance.

Disclaimer 2: I should tidy this up but probably won’t.

Disclaimer 3: Yeah called it, better to be realistic.

Type classes are a language of their own, this is an attempt to document features and give a name to them.

@atoponce
atoponce / gist:07d8d4c833873be2f68c34f9afc5a78a
Last active June 1, 2024 04:56 — forked from tqbf/gist:be58d2d39690c3b366ad
Cryptographic Best Practices

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from