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
#!/usr/bin/env bash | |
set -e | |
PREFIX_PATH="C:" | |
INSTALL_PREFIX="C:" | |
MAKEINSTALLER=false | |
PERFORMINSTALL=false | |
DO_COMPILE=true | |
print_usage() { |
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 <cstdio.h> | |
int main(int argc, const char* argv[]) { | |
if(argc != 2) | |
return 1; | |
const char* email = argv[1]; | |
// A valid E-mail address is actually quite complex. You will be writing a function will validate a | |
// subset of these rules. Here, a valid E-mail address will be defined by the following grammar: |
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 <Psapi.h> | |
#include <vector> | |
void scan(void* pPattern, size_t ncb) { | |
static const DWORD pageSize = [] { | |
SYSTEM_INFO info; | |
GetSystemInfo(&info); | |
return info.dwPageSize; | |
}(); |