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
# Android (Studio) gitignore | |
# | |
# Sources: | |
# - iainconor, Android Studio .gitignore (https://gist.github.com/iainconnor/8605514) | |
# - github, gitignore (https://github.com/github/gitignore/blob/master/Android.gitignore) | |
# | |
# Built application files | |
*.aab | |
*.aar |
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
# Shorthand for getting creation and start dates for running a Docker Container | |
docker inspect some-container | grep -E "(Created|Started)" | sed "s/\s//g" |
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
// For taking live screenshots in Selenide/Selenium Tests inside IDEAs Debugger watch that expression: | |
Screenshots.takeScreenShotAsImage($("*")) |
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
package ...; | |
import ...; | |
@ExtendWith(SpringExtension.class) | |
@WebMvcTest(controllers = SomeMVCController.class, secure = false) | |
class SomeMVCUnitTests { | |
@Autowired | |
private MockMvc mvc; |
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
git branch -d feature/to-be-removed && git push origin --delete feature/to-be-removed |
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
console.log(`<context>: <name> (${Date.now()})`); | |
console.log("object-1: %o, object-2: %o, ..., object-n: %o", o1, o2, o3); | |
console.trace(); | |
console.table(o1); |
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
const express = require('express'); | |
const app = express(); | |
const port = 3000; | |
app.get('/exit', (req, res) => { | |
res.sendStatus(200); | |
res.on('finish', () => { | |
// Exiting process when the finish event was emited and the response was at least passed successfully to the operating system | |
// (for details see: https://nodejs.org/api/http.html#http_event_finish). Without that the HTTP status code 200 won't make it. | |
console.log(`Sent a 200, stoping to list for connections on ${port} and exiting process.`); |
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
std::vector<char*> simulated_argv; | |
simulated_argv.push_back((char*) "application_name"); | |
simulated_argv.push_back((char*) "--something"); | |
simulated_argv.push_back((char*) "42"); | |
// to use the vector like the char* array use data() of vector |
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
#ifndef DATA_H | |
#define DATA_H | |
#include <QObject> | |
class DataMessenger : public QObject { | |
Q_OBJECT | |
public: |