This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"branches": [ | |
"main" | |
], | |
"debug": true, | |
"ci": true, | |
"dryRun": false, | |
"plugins": [ | |
[ | |
"@semantic-release/commit-analyzer", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use a specific version of the official Node.js image based on the slim variant | |
FROM node:18.16.0-bullseye-slim AS build | |
# Set the working directory | |
WORKDIR /usr/src/app | |
# Copy required files for installing dependencies | |
COPY package.json package-lock.json nx.json tsconfig.base.json decorate-angular-cli.js ./ | |
COPY apps/<app-name>/ ./apps/<app-name>/ | |
COPY apps/<app-name>-e2e/ ./apps/<app-name>-e2e/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8100; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy and paste the contents of this file to your .zshrc or .bash_profile file. | |
# | |
# Example use: | |
# to commit with only one letter go: | |
# | |
# c feat: your commit message | |
# | |
# In the above example, the following would happen: | |
# - Your changes would be staged for commit | |
# - A commit with a message - "feat: your commit message" - would be created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <algorithm> | |
#include <regex> | |
/* | |
source: http://www.techiedelight.com/remove-whitespaces-string-cpp/ | |
1. space ' ' | |
2. line feed '\n' | |
3. carriage return '\r' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GamePlayer { | |
private: | |
enum { NumTurns = 5 }; // “the enum hack” — makes | |
// NumTurns a symbolic name for 5 | |
int scores[NumTurns]; // fine | |
... | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
const std::string myString = "My Hello World Wow"; | |
// C++17 | |
if (const auto it = myString.find(" "); it != std::string::npos) | |
std::cout << "Space found! Index number: " << it << std::endl; | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// RemoveElementFromVector | |
// | |
// Created by Mateusz Zaremba on 07/04/2018. | |
// Copyright © 2018 Mateusz Zaremba. All rights reserved. | |
// | |
#include <iostream> | |
#include <algorithm> |