https://github.com/maksimdrachov/cpp-snippets
https://github.com/maksimdrachov/cpp-snippets
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maksimdrachov/cpp-snippets
- Owner: maksimdrachov
- Created: 2023-12-22T17:47:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-22T19:23:40.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T19:25:00.453Z (8 months ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ Code Snippets
## Setup
1. Install [Nix](https://nixos.org/download)
- Linux
```bash
sh <(curl -L https://nixos.org/nix/install) --daemon
```- macOS
```bash
sh <(curl -L https://nixos.org/nix/install)
```- Windows (WSL 2)
```bash
sh <(curl -L https://nixos.org/nix/install) --daemon
```2. Open Nix Shell
```bash
cd ~/cpp-snippets
nix-shell
[nix-shell]$ cd 01_unique_ptr_custom_dtor
[nix-shell]$ mkdir build && cd build
[nix-shell]$ cmake ..
[nix-shell]$ make
[nix-shell]$ ./main
...
[nix-shell]$ exit
```