This file contains hidden or 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
diff --git a/PC/layout/main.py b/PC/layout/main.py | |
index 3eef755..92fb4ec 100644 | |
--- a/PC/layout/main.py | |
+++ b/PC/layout/main.py | |
@@ -178,7 +178,7 @@ def get_layout(ns): | |
found_any = True | |
yield dest, src | |
if not found_any: | |
- log_error("Failed to locate vcruntime DLL in the build.") | |
+ log_warning("Failed to locate vcruntime DLL in the build.") |
This file contains hidden or 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
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c | |
index c984e2e..f646498 100644 | |
--- a/Modules/posixmodule.c | |
+++ b/Modules/posixmodule.c | |
@@ -18,7 +18,7 @@ | |
FSCTL_GET_REPARSE_POINT is not exported with WIN32_LEAN_AND_MEAN. */ | |
# include <windows.h> | |
-# include <pathcch.h> | |
+# include <Shlwapi.h> |
This file contains hidden or 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
@echo off | |
setlocal | |
set fftw_32_achive=archive\fftw-3.3.5-dll32.zip | |
set fftw_64_achive=archive\fftw-3.3.5-dll64.zip | |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: percheck and prepare :: | |
set DEFAULT_PATH=C:\Windows\system32;C:\Windows; |
This file contains hidden or 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
/************************************************************/ | |
/* using template function avoid declare function type twice */ | |
template<typename T> | |
T load_python_function(void* handle, const char * fun_name) | |
{ | |
return reinterpret_cast<T>(::dlsym(handle, fun_name)); | |
} | |
/************************************************************/ | |
/* using template class avoid stupid `(*)` in the type mark */ |
This file contains hidden or 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
set shell = CreateObject("WScript.Shell") | |
shell.run"rsync -a Name@192.168.1.100:/Users/Name/Projects/test ." | |
WScript.Sleep 100 | |
shell.SendKeys"Your_Password" | |
shell.SendKeys "{ENTER}" |
This file contains hidden or 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
where /q cl | |
if ERRORLEVEL 1 ( | |
echo command msvc cl does not find. | |
echo make sure msvc cl is installed and placed in path. | |
exit /B | |
) | |
cl 2>&1 | findstr x86 > nul | |
if ERRORLEVEL 1 ( |
This file contains hidden or 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 <queue> | |
#include <unordered_map> | |
#include <atomic> | |
#include <mutex> | |
#include <shared_mutex> | |
#include <thread> | |
#include <condition_variable> | |
#include <iostream> |
This file contains hidden or 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 <memory> | |
#include <string> | |
#include <zlib.h> | |
std::string inf(const char *source, const size_t length) | |
{ | |
auto deleter = [](z_stream* strm){ inflateEnd(strm); }; | |
std::unique_ptr<z_stream, decltype(deleter)> \ |
This file contains hidden or 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
#!/bin/bash | |
OPENSSL_VERSION="1.0.1g" | |
curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_i386 | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
cd openssl_i386 |
This file contains hidden or 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
static const char * square_xpm[] = { | |
"7 7 2 1", | |
"* c #000000", | |
". c #ffffff", | |
"*******", | |
"*.....*", | |
"*.....*", | |
"*.....*", | |
"*.....*", |