Skip to content

Instantly share code, notes, and snippets.

View yy-zhong's full-sized avatar

yy-zhong yy-zhong

  • Tongji University
  • Shanghai, China
  • 01:35 (UTC +08:00)
View GitHub Profile
@divs1210
divs1210 / stackless-eval.md
Last active April 22, 2024 01:58
Writing a Stackless Evaluator

Writing a Stackless Evaluator

Divyansh Prakash, September 2023

tiny-stackless-eval

Preface

NOTE: Please read the previous post to understand the context of this post.

@lobre
lobre / zig_type_system.md
Last active December 3, 2025 12:41
Zig type system illustrated using ascii diagrams

Zig Type System

Zig aims to be a simple language. It is not easy to define what simple exactly means, but zig is also a low-level programming language that aims for c-compatibility. To reach this goal, it needs good semantics in its type system so that developers have a complete toolbox to manipulate data.

So types in zig are composable, but this can become rapidly overwhelming. See those examples. Are you able to understand them at a glance, as soon as you read them?

*const ?u8
?*const u8
*const [2]u8
@LewisGaul
LewisGaul / zig-blog-posts.md
Last active August 10, 2025 13:50
Collection of blog posts about the Zig programming language
@sindresorhus
sindresorhus / esm-package.md
Last active January 28, 2026 02:16
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@ityonemo
ityonemo / test.md
Last active January 26, 2026 14:48
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@TizioFittizio
TizioFittizio / git_exercises.md
Last active July 1, 2024 08:24
Git Exercises

Exercises

  • Basics
    • Init a repository
    • Track and stage new files
    • Execute a commit
    • Clone a repository
    • Know state of a file (untracked, unmodified, modified, staged)
    • Obtain current status of files
  • Get a short version of status
@ivanskodje
ivanskodje / youtube-dl-download-youtube-music-playlists.md
Last active October 27, 2025 16:45
youtube-dl for downloading music from YouTube

Downloading Music Playlists from YouTube

Disclaimer

Use this knowledge at your own risk.

youtube-dl for Windows

youtube-dl will allow you to download entire youtube playlists and store them as MP3s. This will also allow you to download individual MP3s.

@JBlond
JBlond / bash-colors.md
Last active January 26, 2026 18:39 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@vratiu
vratiu / .bash_aliases
Last active January 27, 2026 09:02
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset