Skip to content

Instantly share code, notes, and snippets.

View mallochine's full-sized avatar

Alex Guo mallochine

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxn3EXatqwm7L/xaIhgVfVTVZMi/xvwd42LN6FXALNqJhktalJhlkR7F66gsDaHH1DHW/bzU74O9sLG3LmtLddF2CKuMsdDc2FiXRKu9Cqdkfek2cYAs9F4xHTwUWmLeVUSo7e3dT2U0f7YC4sIG4mrBfILQFDAtFBvDV+k5KBeaV5jsgsuQEzYVTxmNlTacc51QyT+OhBN40p+S8V9zksJpj6Ow63ofHVXSLUgwTEl9KKAY8XZRbJUKVeqe56+E/iMUQZH8PPNaP1YvLvZkb8hyhDyxCCQ06yyuK66PmV+98hEGckijQniv+hrr2Fus5Isoq7xvBAuLW6v7bPtTM+Q== [email protected]
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5pQVAjSTAjTWYAv0KdRQQ4ieiiS3IBJSSaQ1MugfqEGo9gnaayj5h7W/hTOLGklE3+9gkJMlFmYt90ftNvmhkVCE4Nb708JOZBOM6a8JKshBLpZJRIvWZKZstBNDuAr7J79PPBii1U5QQbRBHNfYtMsLiHjFpbGEMprukAsekFowEv5SKPE0lXfp3JNsj6H4MyDQ4OczQgmcA+g+YrLJTSqY3OKbXTDbDY6ASO7gvdu3G1RHVrJZX/V0FYblhS6UsuWs0SF/hEf7ALmmUw4vCylt23oboMuRbugU3fzhxAr8HMaEV7R6SQA1aKeW/5JkdNRUFzi2v6xTAqLb30z+BQ== aguo@guo-dev
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0P+yNfeXPW7lXfc0YZXQW9KXBiUX87V3icn2T6RMMqP/wWU8AX4P3o+Z6fNfPsLxBV7Lx3iP2MbNOynq7ubDmah+HrakD8zTT+vnFMQZ0GDPrut4iQrXPwY6KsndqTnpfd07+jCIFv0nsyiGxlEKRKGeK7IZIkXb3LDxJ+CCRoU2rygONpqqStwLkizBc
@mallochine
mallochine / no_c_compiler
Created October 30, 2017 06:05
no_c_compiler
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
@mallochine
mallochine / prob3.cpp
Created October 28, 2017 20:52
prob3.cpp
/**
* Specify access to the 32-bit or 64-bit application view of
* registry values. The default is to match the currently running
* binary type.
*/
enum KeyWOW64
{
KeyWOW64_Default,
KeyWOW64_32,
KeyWOW64_64
@mallochine
mallochine / problem2.cpp
Created October 28, 2017 20:48
problem2.cpp
bool cmGlobalVisualStudio14Generator::IsWindowsDesktopToolsetInstalled() const
{
const char desktop10Key[] = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\"
"VisualStudio\\14.0\\VC\\Runtimes";
std::vector<std::string> vc14;
return cmSystemTools::GetRegistrySubKeys(desktop10Key, vc14,
cmSystemTools::KeyWOW64_32);
}
@mallochine
mallochine / something.cpp
Created October 28, 2017 20:44
problem number 1
bool cmGlobalVisualStudio14Generator::IsWindowsStoreToolsetInstalled() const
{
const char universal10Key[] =
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\"
"VisualStudio\\14.0\\Setup\\Build Tools for Windows 10;SrcPath";
std::string win10SDK;
return cmSystemTools::ReadRegistryValue(universal10Key, win10SDK,
cmSystemTools::KeyWOW64_32);
}
@mallochine
mallochine / gist:062ff08f38f475f780bba3a46b88e5b8
Created October 28, 2017 20:36
cmake windows store component problem
$ cmake ../Source -DCMAKE_SYSTEM_NAME="WindowsStore" -DCMAKE_SYSTEM_VERSION="10.0" -G"Visual Studio 14"
CMake Error at CMakeLists.txt:2 (project):
A Windows Store component with CMake requires both the Windows Desktop SDK
as well as the Windows Store '10.0' SDK. Please make sure that you have
both installed
-- Configuring incomplete, errors occurred!
class SomeParser {
parse(line) {
// Do some parsing work.
}
dataReady() {
// Easy way for others to figure out if the parser has data that's ready to be collected.
}
}