git format-patch -1 <sha>
OR
git format-patch -1 HEAD
git apply --stat file.patch # show stats.
git apply --check file.patch # check for error before applying
| https://www.cnblogs.com/JoyPoint/p/11629521.html | |
| #=============Copy Source files to Build Runtime Dir=============== | |
| #该内容一般放在项目顶层CMakelists.txt的最后, | |
| #目的是将项目生成后的执行文件所需的第三方库复制到执行程序目录, | |
| #并区分Debug和Release版本。 | |
| #该方法中的COMMAND_EXPAND_LISTS参数值得关注,可以复制列表内所有文件。 | |
| FILE(GLOB Plugin_Runtime_Debug_DLL_FILES CONFIGURE_DEPENDS | |
| ${CMAKE_CURRENT_SOURCE_DIR}/Plugin_Runtime_Dir/Debug/*.* | |
| ) |
| sudo launchctl stop com.openssh.sshd | |
| sudo launchctl start com.openssh.sshd |
| "latex-workshop.view.pdf.viewer": "tab", | |
| "latex-workshop.latex.tools": [ | |
| { | |
| "name": "latexmk", | |
| "command": "latexmk", | |
| "args": [ | |
| "-shell-escape", | |
| "-synctex=1", | |
| "-interaction=nonstopmode", |
| #include <atlbase.h> | |
| #include <gtest/gtest.h> | |
| #include <wincodec.h> | |
| #include <tchar.h> | |
| #pragma comment(lib, "windowscodecs") | |
| #define RETURN_IF_FAILED(hr) \ | |
| if (FAILED(hr)) \ | |
| return (hr) |
| from __future__ import division | |
| def add(num1, num2): | |
| assert type(num1) == int or type(num1) == float | |
| assert type(num2) == int or type(num2) == float | |
| return num1 + num2 | |
| def divide(numerator, denominator): | |
| return numerator / denominator |
| // | |
| // main.swift | |
| // Echo | |
| // | |
| // Created by juchen3 on 1/29/21. | |
| // | |
| // http://www.alwaysrightinstitute.com/network-framework/ | |
| // https://www.appcoda.com.tw/network-framework-http/ | |
| import Foundation |
| /* compile with: | |
| on linux: gcc -g stack_traces.c | |
| on OS X: gcc -g -fno-pie stack_traces.c | |
| on windows: gcc -g stack_traces.c -limagehlp | |
| */ | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <assert.h> |