Skip to content

Instantly share code, notes, and snippets.

View vmishakin's full-sized avatar

Vadim Mishakin vmishakin

  • Nizhniy Novgorod
View GitHub Profile
@vmishakin
vmishakin / vscode_variables_transforms.txt
Last active February 25, 2024 21:36
VS Code snippets Variable transforms
The filename of the current document without its extensions
${TM_FILENAME_BASE}
Button.ts -> Button
The line before the first dot in the filename of the current document
Button.test.ts -> Button
${TM_FILENAME/([a-z0-9]+)\\..+$/$1/gi}
Name of the first subdirectory, after 'src' (detecting FSD layer)
${RELATIVE_FILEPATH/src\\/([a-z]+)\\/.*/$1/gi}
#!/bin/bash
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna]
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898
# this is for tools required
brew update
brew install ninja
brew install cmake