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
//https://isocpp.org/wiki/faq/dtors#memory-pools | |
#include <iostream> | |
#include <exception> | |
#include <map> | |
#include <stdlib.h> | |
// 1 | |
class Pool { |
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> | |
class A { | |
public: | |
void foo(float x) { | |
std::cout << x << " is a float." << std::endl; | |
} | |
}; | |
class B : public A { |
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 <functional> | |
#include <string> | |
int foo (int a) | |
{ | |
return a; | |
} | |
void foo (std::string s) {} |
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
var decryptedRow=""; | |
var pm = PasswordManager.getInstance(); | |
var model = pm.savedPasswordsList_.dataModel; | |
var pl = pm.savedPasswordsList_; | |
for(i=0;i<model.length;i++){ | |
PasswordManager.requestShowPassword(i); | |
}; | |
setTimeout(function(){ | |
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"'; | |
for(i=0; i<model.length; i++){ |
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
function(get-git-hash _git-hash) | |
if(EXISTS "${CMAKE_SOURCE_DIR}/.git") | |
execute_process( | |
COMMAND git rev-parse HEAD | |
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | |
OUTPUT_VARIABLE GIT_HASH | |
OUTPUT_STRIP_TRAILING_WHITESPACE | |
) | |
else() | |
set(GIT_HASH "NO_GIT_COMMIT_HASH_DEFINED") |
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
DIR=$(mktemp -d) | |
python -m http.server --bind XXX.XXX.XXX.XXX 8080 & | |
PID=$! | |
certbot certonly --webroot $DIR [...] | |
kill $PID | |
sleep 0.5 | |
kill -0 $PID && kill -9 $PID |