Skip to content

Instantly share code, notes, and snippets.

View danielkaczmarczyk's full-sized avatar
🌻

Daniel Kaczmarczyk danielkaczmarczyk

🌻
View GitHub Profile
@danielkaczmarczyk
danielkaczmarczyk / node-typescript-esm.md
Created November 21, 2023 20:03 — forked from khalidx/node-typescript-esm.md
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@danielkaczmarczyk
danielkaczmarczyk / normcore-llm.md
Created August 30, 2023 18:32 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@danielkaczmarczyk
danielkaczmarczyk / latency.txt
Created August 23, 2023 22:50 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
PEP - Personal Empowerment Protocol
How to succeed in asking questions the right way:
1. Read the error
2. Google the problem
3. Ask a neighbor
4. Ask a teacher
How does it mostly look like in reality (if the problem is hard)
@danielkaczmarczyk
danielkaczmarczyk / programming-as-theory-building.md
Created June 1, 2020 15:24 — forked from onlurking/programming-as-theory-building.md
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-amd64.iso

Badges and Schedules

Objectives

  1. Define methods that use iteration and control the return values of those methods.
  2. Define methods that call other methods.

Introduction

In this lab you'll iterate through an array and output the results in different ways.

# Badges and Schedules
## Objectives
1. Define methods that use iteration and control the return values of those methods.
2. Define methods that call other methods.
## Introduction
In this lab you'll iterate through an array and output the results in different ways.
Lesson 1 SUMMARY
1. The cursor is moved using either the arrow keys or the hjkl keys.
h (left) j (down) k (up) l (right)
2. To start Vim from the shell prompt type: vim FILENAME <ENTER>
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes.
OR type: <ESC> :wq <ENTER> to save the changes.