Skip to content

Instantly share code, notes, and snippets.

@ghosoft
ghosoft / stm32 vscode makefile project
Last active August 8, 2018 08:47
stm32 cubemx generate makefile project
makefile:
#BINPATH = C:/APPS/gcc-arm-none-eabi-7-2017-q4-major-win32/bin
GCC_PATH = C:/APPS/gcc-arm-none-eabi-7-2017-q4-major-win32/bin
$\.vscode\c_cpp_properties.json
"includePath": [
"C:/APPS/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include/*",
"${workspaceFolder}/Inc/*",
"${workspaceFolder}/Drivers/STM32F1xx_HAL_Driver/Inc/*",
"${workspaceFolder}/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/*",
@ghosoft
ghosoft / user-rule.txt
Last active May 23, 2018 01:27
user-rule @ company
! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
! Local
@@*192.168.*.*/*
@@*127.0.0.1/*
@@*0.1.0.1/*
@ghosoft
ghosoft / pac.txt
Last active May 21, 2018 08:47
pac @ campany
function isMatchProxy(url, pattern) {
try {
return new RegExp(pattern.replace('.', '\\.')).test(url);
} catch (e) {
return false;
}
}
function FindProxyForURL(url, host) {
var Proxy = 'PROXY 127.0.0.1:10800';
@ghosoft
ghosoft / cVimSettings.ghosoft
Last active September 27, 2015 14:17
cVimSettings.ghosoft
#cVim-link-container {
position: absolute;
pointer-events: none;
width: 100%; left: 0;
height: 100%; top: 0;
z-index: 2147483647;
}