10 2020 档案
摘要:深入理解Git的实现原理 作者:马鸣谦 邮箱:1612557569@qq.com (如有和文章相关的技术问题,欢迎通过邮件探讨,见信必回) 声明:原创文章,转载请注明出处,勿用于商业用途,侵权必究! 0、导读 本文适合对git有过接触,但知其然不知其所以然的小伙伴,也适合想要学习git的初学者,通过
阅读全文
摘要:程序员小灰-算法集锦 本文整理了公众号《程序员小灰》里面的经典算法,供大家参考学习。 漫画:什么是ConcurrentHashMap? 漫画:高并发下的HashMap 漫画:什么是HashMap? 漫画:什么是红黑树? 什么是AES算法?(整合版) 漫画:什么是SHA系列算法? 漫画:什么是MD5算
阅读全文
摘要:electron加入headless包。打印到pdf:-print-to-pdf 打印到png图片: --screenshot chrome的启动main:src\chrome\app\chrome_main.cc 用electron执行headless: e run --headless --en
阅读全文
摘要:Skip to main content CHROME CHROME OS CHROME APIS <webview> Tag Description: Use the webview tag to actively load live content from the web over the n
阅读全文
摘要:看一个目录里面的target所有的宏定义。比如看chrome编译时的所有宏定义。chrome在BUILD.gn文件中是个group,找到它的依赖: gn desc out\Default //chrome:chrome_initial defines --blame From //build/con
阅读全文
摘要:typescript变量名后面的感叹号是什么意思? ts的代码如下: let foo = () =>{ let name = "alberto"; return name!; } document.body.innerHTML = foo(); 编译成js后的代码如下: var foo = func
阅读全文
摘要:SwiftShader 是个基于cpu软解码实现OpenGL ES and Direct3D 9 graphics APIs12。提供硬解码独立的3D图形。 在electron上,替换调ANGLE库,即用SwiftShader编译出的 libegl.dll 和 libglesv2.dll覆盖ANGL
阅读全文
摘要:Headless Chrome architecture skyostil@ February 17th, 2016 go/ghost-rider (internal link), crbug.com/546953 Introduction Goals Non-Goals Architecture
阅读全文
摘要:安装 puppeteer插件npm install puppeteer -S 引入puppeteer这个插件 const puppeteer = require('puppeteer'); 两种方式抓取网页快照 用browserless.io国外网站提供的服务。这个服务对测试demo免费。无需注册。
阅读全文
摘要:1, 创建窗口时必须打开nodeIntegration: win = new BrowserWindow({ width: 800, height: 600, sandbox: true, webPreferences: { nodeIntegration: true }, }) 2,示例 html
阅读全文
摘要:线程 任务 chrome
阅读全文
摘要:代码: #include <algorithm> #include <iostream> #include <vector> #include <iterator> #include <numeric> int main() { std::vector<int> from_vector(10); s
阅读全文
摘要:1,在D:\dev\electron9\src\content\public\browser\content_browser_client.h 中,放着对外可以覆盖的接口 如,强制下载而不是用plugin打开: // Called on IO or UI thread to determine wh
阅读全文
摘要:智能指针就是作用域(scoping object)对象。即本地的值对象。出了作用域自动释放。用scoping object管理堆分配的对象,叫RAII(Resource Acquisition Is Initialization)。 一个简单的RAII示例,自己实现个智能指针: template <
阅读全文
摘要:使用Google的gn工具构建C++项目,但是官方的demo构建脚本还是不够简单,这里写一个最简单的构建结构. 目录结构 目录结构 必要的几个文件 .gn 根目录下的BUIlD.gn BUILDCONFIG.gn .gn # gn help dotfile buildconfig = "//buil
阅读全文
摘要:http-server nodejs www server
阅读全文
摘要:http://www.chromium.org/developers/how-tos/
阅读全文
摘要:Visual Studio Code is a free, lightweight and powerful code editor for Windows, Mac and Linux, based on Electron/Chromium. It has built-in support for
阅读全文
摘要:在提交github代码时会自动lint检测。对c++代码,可以使用clang-format自动格式化,不符合格式的会自动调整。 在electron目录下,执行 npm run lint Using clang-format on C++ Code clang-format is a tool to
阅读全文
摘要:c++ 书籍推荐 c++函数式编程:Functional Programming in C++ (manning.com) 进入页面可以免费在线观看和做笔记 about this book - Functional Programming in C++ (manning.com) 源码地址:File
阅读全文