Skip to content

Instantly share code, notes, and snippets.

View shubhamkumar13's full-sized avatar
πŸ˜‘
is existing

shubham shubhamkumar13

πŸ˜‘
is existing
View GitHub Profile
@coolreader18
coolreader18 / PUZ_FileFormat.md
Last active August 16, 2025 21:25
Detailed `puz` file format documentation

Originally taken from FileFormat.wiki from the puz project.

Introduction

PUZ is a file format commonly used by commercial software for crossword puzzles. There is, to our knowledge, no documentation of the format available online. This page (and the implementations) is the result of a bit of reverse engineering work.

@VictorTaelin
VictorTaelin / hvm3_atomic_linker.md
Last active June 14, 2025 06:46
HVM3's Optimal Polarized Atomic Linker

HVM3's Optimal Atomic Linker (with Polarization)

Atomic linking is at the heart of HVM's implementation: it is what allows threads to collaborate towards massive parallelism. All major HVM versions started with a better atomic linker. From slow, buggy locks (HVM1), to AtomicCAS (HVM1.5), to AtomicSwap (HVM2), the algorithm became simpler and faster over the years.

On the initial HVM3 implementation, I noticed that one of the cases on the atomic linker never happened. After some reasoning, I now understand why, and

@Chubek
Chubek / POSIX-Shell.ebnf
Last active July 14, 2025 21:52
The POSIX Shell Grammar
# Lexical and Syntactic EBNF Grammar for POSIX Shell (Non-Attributed)
# Authored by Chubak Bidpaa ([email protected])
# Written For the Marsh Shell (https://github.com/Chubek/Marsh)
# This grammar is based on POSIX specs (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html)
# This document is released under `Unlicense` Public Domain License Agreement | (C) 2024 Chubak Bidpaa | No Warranty
# A: Lexical Grammar for POSIX Shell
@sleeyax
sleeyax / stremio_discord_integration.md
Last active August 8, 2025 03:49
Stremio and Discord integration guide

Stremio and Discord integration

2023_07_08_15_03_33

Show your favorite movies, series and channels from Stremio to your friends on Discord!

⚑ Quick start

@ZacharyPatten
ZacharyPatten / ConsoleInput.md
Last active August 12, 2025 06:17
Beginner's Guide To Console Input In C#

Beginner's Guide To Console Input In C#

Note: I recommend reading this gist in order because Examples 1-6 build on each other.

@raiph
raiph / .md
Last active September 13, 2025 11:42
Raku's "core"

Then mathematical neatness became a goal and led to pruning some features from the core of the language.

β€” John McCarthy, History of Lisp

If you prefer programming languages with a tidy and tiny core, you're in for a treat. This article drills down to the singleton primitive at the heart of Raku's metamodel ("model of a model") of a model of computation ("how units of computations, memories, and communications are organized")1.

The reason I've written this article

It began with u/faiface's reddit post/thread "I'm impressed with Raku"2. One of their sentences in particular stood out for me:

@swlaschin
swlaschin / effective-fsharp.md
Last active September 17, 2025 06:47
Effective F#, tips and tricks

Architecture

  • Use Onion architecture

    • Dependencies go inwards. That is, the Core domain doesn't know about outside layers
  • Use pipeline model to implement workflows/use-cases/stories

    • Business logic makes decisions
    • IO does storage with minimal logic
    • Keep Business logic and IO separate
  • Keep IO at edges

@pcgeek86
pcgeek86 / cheatsheet.ps1
Last active September 9, 2025 10:48
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@bordoley
bordoley / gist:59be7941ce918562cd39
Last active August 2, 2025 19:37
F# Event Loop Implementation
module EventLoop
open System
open System.Collections.Concurrent
open System.Threading
open System.Threading.Tasks
type IEventLoop =
inherit IDisposable