Skip to content

Instantly share code, notes, and snippets.

@YsHaNgM
YsHaNgM / download_from_google_storage.py
Created August 26, 2022 12:56
Build chromium behind a proxy needs some tricks to download hooks
@@ -25,6 +25,7 @@ import time
import subprocess2
+import download_help
# Env vars that tempdir can be gotten from; minimally, this
# needs to match python's tempfile module and match normal
@@ -276,27 +277,27 @@ def _downloader_worker_thread(thread_num, q, force, base_url,
# Check if file exists.
@YsHaNgM
YsHaNgM / gist:1be153716c690b00476d8fa0d202627c
Created March 13, 2020 17:48
cmake@3.15 as 3.16 corrupt support of openMP on Macos
https://raw.githubusercontent.com/Homebrew/homebrew-core/de9a3363fd4e1637a455c5c37d8b5fd80590cdee/Formula/cmake.rb
@YsHaNgM
YsHaNgM / CMakeLists.txt
Created March 29, 2019 19:09
Requirement CMakeLists in use of OpenMP+Apple clang under Mojave
cmake_minimum_required(VERSION 3.12)
project(openmptest CXX)
add_executable(sample sample.cpp)
option(CMAKECATCHMPI_USE_OPENMP "Enable OpenMP" ON)
if(CMAKECATCHMPI_USE_OPENMP)
find_package(OpenMP)