Motivation Quicksort takes average O(N log N) time complexity with O(log N) space. It’s preferred in many cases than Mergesort which takes O(N) space in…
Author: paul
Permutation with Backtracking in React.js – 以回溯算法演示排列问题,React.js 呈现
Motivation Permutation algorithm is NP-Hard in factorial time complexity. It’s the a step of the naive solutions to solve Travelling Salesman issue. Code Analysis /**…
Red-black tree with Graphviz insertion example – 以 Graphviz 讲解红黑树添加节点
Preface I spent sometime on learning Red-Black tree. While it’s pretty time consuming as I couldn’t find a convincing tutorial in Youtube. So I decided…
Machine Learning:Gradient Descent with Angular – 机器学习:梯度下降之Angular演示
Preface / 前言 Thanks to the the courses offered by Andrew Ng, Gradient Descent is much easier to understand. 谢谢吴恩达的机器学习教程,梯度下降理解起来更多的容易了。 Code / 代码 This the…
macOS 安全开源五笔-拼音混合输入法“须鼠管” — The safe Chinese Wubi IME for macOS
Chinese only. 前言 如果你比较担心自己的电脑或者手机安全,特别是涉及疯狂时局,你可能需要特别警惕你的电脑和手机输入法。这是非英文软件系统设计中一个不得已的妥协,也是个人信息、密码等非常可能被窃取的地方。 如果你习惯搜狗输入法。不经意间,你在你的 macOS 上输入的东西,包括你打开的各种文档、电子表格等,都会统统被发给搜狗服务器。而根据互联网相关法律,搜狗无法拒绝有关人士的查询。如此,什么 HTTPS 加密、Signal/Whatsapp/电报,都变得形同虚设。 但你又已经习惯了更智能的输入法,特别像我,从初中开始使用五笔,后来习惯搜狗五笔,基本比较难再考虑其他的系统默认方案。 所以,我们今天介绍我最近开用的开源输入法:鼠须管。
Code for bulk deleting Weibo post – 批量删除微博代码 – 201909 update
Only for Chinese user. 前言 微博会使用你的不活跃账号转发各种奇怪的账号。这种行为可能让你非常尴尬,因为你不是个八卦的人,而微博代表着曾经,也代表着你的形象。所以小方提供代码让你轻松删除所有微博。 代码与教程 教程 代码 function main() { let scrollTimes = 0; scrollToPageBottom(); setTimeout(() => delPost(), 4000); setTimeout( () => nextPage(),…
When you couldn’t install Bootcamp Windows 10 due to less than 40GB disk space warning
The Problem I would like to kick start on Azure Portal Extension development today. So I have to install Visual Studio. To suprise me, the…
Solution to fix your Angular 5 – TestBed bug of XMLHttpRequest cannot load ng:///DynamicTestModule/- 修复 Angular 5- TestBed 以调试测试用例
You may have encountered this error before. XMLHttpRequest cannot load ng:///DynamicTestModule/******.ngfactory.js. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.…
刷机升级 Yotaphone 3 国行Android 7.1.1 成 Yota3+ 港行Android 8.1.0 – Upgrade your Yota3 to Yota 3+ International
Preface Yesterday night, I upgrated my Yotaphone3 China version (Android 7.1.1, no Google apps) to Yota3+ HongKong version (Android 8.1.0 with all Google apps). Yota3+…
Yotaphone 3: Install any apps (Wechat / Youversion / Kindle U.S.) in backscreen (ink) – Yota 手机在背屏安装各种应用
Updated You may be also interested in 刷机升级 Yotaphone 3 国行Android 7.1.1 成 Yota3+ 港行Android 8.1.0 – Upgrade your Yota3 to Yota 3+ International Preface…
Deprecated: Install Google Apps / Play Store for Yota3 / Yotaphone3 China version – 不建议:Yota3 电子墨水屏幕手机安装谷歌服务
Updated This article is deprecated as Yota3 APK installer may crush due to Google GMS. If you want Google Apps in your Yota3, Please refer…
Javascript doing mergeSort – JS 实现合并排序
See the Pen bmRXZG by Paul Lan (@lanshunfang) on CodePen.