上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 30 下一页
摘要: useCallback returns a memoized callback. const memoizedCallback = useCallback(function, arrayDependency) const App = () => { const [age, setAge] = use 阅读全文
posted @ 2020-10-26 13:12 fndefbwefsowpvqfx 阅读(60) 评论(0) 推荐(0) 编辑
摘要: returns a 'ref' object. const refContainer = useRef(initialValueToBePersisted) Value is persisted in the refContainer.current property. values are acc 阅读全文
posted @ 2020-10-26 13:10 fndefbwefsowpvqfx 阅读(51) 评论(0) 推荐(0) 编辑
摘要: useReducer may be used as an alternative to useState. const [state, dispatch] = useReducer(reducer, initialState, lazyInitFunction) Ideal for complex 阅读全文
posted @ 2020-10-26 13:08 fndefbwefsowpvqfx 阅读(48) 评论(0) 推荐(0) 编辑
摘要: useContext saves you the stress of having to rely on a Context consumer. const contextValue = useContext(contextObject) // consuming context via a con 阅读全文
posted @ 2020-10-26 13:07 fndefbwefsowpvqfx 阅读(46) 评论(0) 推荐(0) 编辑
摘要: useEffect accepts a function which can perform any side effects. useEffect(effectFunction, arrayDependencies) 每次绘制都执行 Without an array dependency, the 阅读全文
posted @ 2020-10-26 13:05 fndefbwefsowpvqfx 阅读(75) 评论(0) 推荐(0) 编辑
摘要: useState lets you use local state within a function component. The setState function is used to update the state. It accepts a new state value and enq 阅读全文
posted @ 2020-10-26 13:04 fndefbwefsowpvqfx 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 插件安装 安装 Debugger for Chrome attach debug debug 模式启动chrome debug模式启动chrome,注意,chrome需要在path中存在,不存在配置下。 chrome --remote-debugging-port=9222 配置launch lau 阅读全文
posted @ 2020-10-23 09:41 fndefbwefsowpvqfx 阅读(62) 评论(0) 推荐(0) 编辑
摘要: settings.outformat="html"; import graph3; size(10cm,10cm); currentprojection=perspective(10,10,10); for(int i=1;i<10;++i) { for(int j=1;j<10;++j) draw 阅读全文
posted @ 2020-10-16 15:04 fndefbwefsowpvqfx 阅读(77) 评论(0) 推荐(0) 编辑
摘要: settings.outformat="html"; size(10cm,10cm); for(int i=1;i<100;++i) { draw((i,0)--(100,100),rgb(i/100.0,1-i/100,0)); } 阅读全文
posted @ 2020-10-16 14:53 fndefbwefsowpvqfx 阅读(68) 评论(0) 推荐(0) 编辑
摘要: settings.outformat="html"; import graph3; size(200,0); currentprojection=perspective(10,8,4); real f(pair z) {return 0.5+exp(-abs(z)^2);} draw((-1,-1, 阅读全文
posted @ 2020-10-16 14:38 fndefbwefsowpvqfx 阅读(63) 评论(0) 推荐(0) 编辑
摘要: GSL - GNU Scientific Library https://www.gnu.org/software/gsl/ eigen http://eigen.tuxfamily.org/index.php?title=Main_Page libigl - A simple C++ geomet 阅读全文
posted @ 2020-10-16 13:09 fndefbwefsowpvqfx 阅读(145) 评论(0) 推荐(0) 编辑
摘要: # 1. windows path length limit https://www.cnblogs.com/Searchor/p/17205540.html # 2. git-lfs # 3. config ```bash git config --system core.longpaths tr 阅读全文
posted @ 2020-10-15 16:52 fndefbwefsowpvqfx 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 通常在发布软件的时候打一个tag,tag会记录版本的commit号,方便后期回溯。 列出已有的tag git tag 加上-l命令可以使用通配符来过滤tag 新建tag 使用git tag命令跟上tag名字,直接创建一个tag。 git tag v1.0 上面创建一个名为v1.0的tag。使用git 阅读全文
posted @ 2020-10-15 16:48 fndefbwefsowpvqfx 阅读(82) 评论(0) 推荐(0) 编辑
摘要: The --depth parameter refers to how deep Git goes on a "walk" from each starting point. As the documentation you quoted mentions, it also implies --si 阅读全文
posted @ 2020-10-15 15:36 fndefbwefsowpvqfx 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 在windows下不要使用powershell,使用cmd窗口 xelatex -interaction=nonstopmode filename.tex 阅读全文
posted @ 2020-10-10 14:40 fndefbwefsowpvqfx 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Ref http://www.ruanyifeng.com/blog/2020/08/rsync.html ###-r 本机使用 rsync 命令时,可以作为cp和mv命令的替代方法,将源目录同步到目标目录。 $ rsync -r source destination 上面命令中,-r表示递归,即包 阅读全文
posted @ 2020-10-10 11:06 fndefbwefsowpvqfx 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Ref http://www.ruanyifeng.com/blog/2019/09/curl-reference.html 本文介绍它的主要命令行参数,作为日常的参考,方便查阅。内容主要翻译自《curl cookbook》。为了节约篇幅,下面的例子不包括运行时的输出,初学者可以先看我以前写的《cu 阅读全文
posted @ 2020-10-10 10:39 fndefbwefsowpvqfx 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 基本流程 ①客户端的浏览器向服务器传送客户端 SSL 协议的版本号,加密算法的种类,产生的随机数, 以及其他服务器和客户端之间通讯所需要的各种信息。 ②服务器向客户端传送 SSL 协议的版本号,加密算法的种类,随机数以及其他相关信息, 同时服务器还将向客户端传送自己的证书。 ③客户利用服务器传过来的 阅读全文
posted @ 2020-10-10 10:21 fndefbwefsowpvqfx 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 下载 指定下载文件名,已存在同名文件被覆盖 curl -o filename.ext downloadlink 继续现有下载 curl -O -C downloadlink 检测下载文件是否存在,不下载 curl -I https://www.booleanworld.com/ 自动重定向 curl 阅读全文
posted @ 2020-09-23 13:11 fndefbwefsowpvqfx 阅读(113) 评论(0) 推荐(0) 编辑
摘要: %% Type: language Subtag: aa Description: Afar Added: 2005-10-16 %% Type: language Subtag: ab Description: Abkhazian Added: 2005-10-16 Suppress-Script 阅读全文
posted @ 2020-09-23 10:35 fndefbwefsowpvqfx 阅读(202) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 30 下一页