Skip to content

Instantly share code, notes, and snippets.

View majda107's full-sized avatar
🀯
Brainstorming ideas 'n hunting bugs

MariΓ‘n TrpkoΕ‘ majda107

🀯
Brainstorming ideas 'n hunting bugs
View GitHub Profile
@majda107
majda107 / PathX.cs
Created April 22, 2026 20:24
PathX.cs β€” pathlib-style '/' path composition for C#, in 30 lines
// ─────────────────────────────────────────────────────────────────────────────
// PathX.cs β€” a single-file, zero-dependency drop-in that adds the Python
// pathlib-style `/` operator to C# path composition.
//
// Why a wrapper?
// C# won't let us add operators to `string` (you can't declare operators
// on types you don't own) or to `System.IO.Path` (it's a static class).
// So the leanest possible trick is a tiny wrapper *struct* that:
// β€’ implicitly converts to/from `string` (so it drops into every
// existing BCL API that takes a path),
@majda107
majda107 / init.vim
Created September 2, 2020 14:32
My VIMRC
call plug#begin('~\AppData\Local\nvim\autoload')
Plug 'morhetz/gruvbox'
"Plug 'rdnetto/YCM-Generator', { 'branch': 'stable'}
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdtree'
call plug#end()
@majda107
majda107 / keybindings.json
Last active May 8, 2021 22:37
VSCode keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+-",
"command": "workbench.action.zoomOut"
},
{
"key": "ctrl+numpad_subtract",
"command": "-workbench.action.zoomOut"
},
@majda107
majda107 / settings.json
Created July 27, 2020 16:22
code-27-07-20
{
"workbench.colorTheme": "Material Theme Ocean",
"window.zoomLevel": 0,
"liveSassCompile.settings.formats": [
{
"extensionName": ".min.css",
"format": "compressed",
"savePath": "/dist/css"
}
],
@majda107
majda107 / Makefile
Created March 29, 2020 18:58
Generic makefile
CXX := g++
CXXFLAGS := -std=c++17 -W
LIBS :=
INC := include
BIN := bin
SOURCE := source
INCLUDE_PATHS :=