Skip to content

Instantly share code, notes, and snippets.

View nicklasfrahm's full-sized avatar

Nicklas Frahm nicklasfrahm

View GitHub Profile
@nicklasfrahm
nicklasfrahm / main.cpp
Created February 9, 2018 23:06
A C++ test application
#include <iostream>
using namespace std;
int main(void)
{
cout << "g++ on Windows rocks" << endl;
return 0;
}
@nicklasfrahm
nicklasfrahm / settings.json
Created February 9, 2018 23:02
Linux subsystem in integrated VS Code terminal
{
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"
}
@nicklasfrahm
nicklasfrahm / .clang-format
Last active March 15, 2025 14:41
Opinionated .clang-format for JS boys coming from prettier and stumbling into C++
AccessModifierOffset: 2
AlignAfterOpenBracket: true
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true