原创 Node日誌感受

why 日誌是用來記錄程序運行重要的工具 記錄請求日誌,關鍵節點打上日誌,可以追蹤問題(生產) 方便調試,定位故障 監控應用的運行狀態 what(egg.js爲例) 日誌分爲: appLogger應用日誌,也是我們自定義的日

原创 [轉載]春節12響

// File: twelve_biubiu.c // Permission: CN-2082-2 // Author: Li.YiYi // Dept: PE-362, UG // Origin: TI-352132 // 春

原创 關於Promise和async聲明的區別

題目 可以添加任務,任務包含任務數據,任務延遲觸發的等待時間。 在任務到達觸發時間點時,自動觸發執行此任務。 隊列中任務保持先進先出原則:假設 A 任務的觸發等待時間爲 X,B 任務的觸發等待時間爲 Y,B 在 A 之後被添加入隊

原创 SearchInsertPosition-LeetCode

LeetCode38 Easy Given a sorted array and a target value, return the index if the target is found. If not, return th

原创 LengthofLastWord

problem Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of

原创 學習之路,歡迎mark,follow

Knowledge all in Knowledge 個人博客 LeetCode 專業課 計算機網絡 計算機操作系統 數據結構 Node.js feature 異步IO 異步編程 內存控制 理解bu

原创 安全防範

分類 XSS 攻擊:對 Web 頁面注入腳本,使用 JavaScript 竊取用戶信息,誘導用戶操作。 CSRF 攻擊:僞造用戶請求向網站發起惡意請求。 釣魚攻擊:利用網站的跳轉鏈接或者圖片製造釣魚陷阱。 HTTP參數污染:利用對參

原创 計算機網絡

更多信息請訪問我的博客 基礎概念 速率(比特率):在數字信道傳送數據位數的速率,b/s,kb/s,Mb/s(mbps:Mb per second)(運營商常用,進制10進制),也可以理解爲帶寬的概念 存儲容量,1Byte=8bit

原创 Java問題排查工具

一下文字摘自JAVA公衆號 Linux命令類 tail 最常用的tail -f tail -300f shopbase.log #倒數300行並進入實時監聽文件寫入模式 grep grep forest f.txt #文

原创 如何將域名綁定到hexo

problem 很多人可能都有hexo博客,會有一個githubname.github.io的地址,然後自己可能想去買一個域名,方便記憶,但是解析後遲遲用不了,該文章就來詳細描述一下步驟。 solution 1.擁有一個githubn

原创 FindMinimumInRotatedSortedArray-LeetCode

problem Find Minimum in Rotated Sorted Array Medium Suppose an array sorted in ascending order is rotated at some

原创 eventLoop

what Event Loop是一個程序結構,用於等待和發送消息和事件 a programming construct that waits for and dispatches events or messages in a pro

原创 JumpGame-LeetCode

problem Given an array of non-negative integers, you are initially positioned at the first index of the array. Each

原创 SpiralMatrix-LeetCode

54.problem Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.

原创 MaximumSubarray-LeetCode

problem Maximum Subarray Easy Given an integer array nums, find the contiguous subarray (containing at least one num