Skip to content

Instantly share code, notes, and snippets.

View tahir-hassan's full-sized avatar

Tahir Hassan tahir-hassan

View GitHub Profile
@tahir-hassan
tahir-hassan / Copy-GitChanges.ps1
Created May 25, 2025 15:08
PowerShell Script to copy new and modified files from a Git repo into another folder.
function Copy-GitChanges {
param (
[string]$Source,
[string]$Destination
)
if (!(Test-Path $Source)) {
throw "Source path '$Source' does not exist."
}
@tahir-hassan
tahir-hassan / setting-up-c-compiler-on-windows-11-for-tree-sitter.md
Created March 11, 2026 18:55
Setting up C Compiler on Windows 11 for Tree-sitter

There are many ways of setting up a C compiler for Tree-sitter on Windows 11, but this is one such way.

Installing Clang

Install Visual Studio Build Tools 2026 using winget install Microsoft.VisualStudio.BuildTools. Run the Visual Studio Installer, which you will find in the Start menu.

On the left, select Desktop development with C++. After selecting it, the right hand panel will list optional components you can install, from which select C++ Clang tools for Windows.