原创 [Linux git]Linux下git push 不用每次輸密碼的方法

Linux下 在~/下, touch創建文件 .Git-credentials, touch .git-credentials vim .git-credentials 編輯此文件,輸入內容格式: https://{use

原创 [sublime]將很亂的代碼一鍵對齊

按ctrl+shift+p,彈出選項,選擇下面這項Indentation:Reindent Lines edit-line-reindent

原创 Internet checksum 因特網檢驗和的算法

Internet校驗和算法: 1.待校驗的相鄰字節成對組成16比特整數並計算其和的二進制反碼(二進制反碼求和). 2.生成校驗和,校驗和區域本身應當先置0,並和待校驗數據相加,其和進行二進制反碼運算後賦給校驗和區域. 3.檢

原创 C++的鎖鎖鎖鎖鎖鎖鎖鎖鎖鎖鎖鎖

std::lock_guard std::lock_guard 在構造函數中進行加鎖,析構函數中進行解鎖。 std::unique_lock 類 unique_lock 是通用互斥包裝器,允許延遲鎖定、鎖定的有時限嘗試、遞歸鎖定、

原创 [latex tikz]畫無向圖的例子

%Tikz畫圖 \usepackage{tikz} \usetikzlibrary{arrows,graphs} %指明是圖庫 \begin{tikzpicture}[> = stealth, % arrow head style s

原创 linux terminal case-insensitive

1、在用戶家目錄下創建“.inputrc”文件。 touch .inputrc 2、在該文件中輸入以下內容“set completion-ignore-case on” vi .inputrc 輸入set completion-

原创 [Ubuntu]終端terminal多標籤和多標籤切換快捷鍵

Ubuntu下的終端產生多標籤和多標籤切換快捷鍵 ctrl+alt+t是打開一個terminal 打開terminal之後使用ctrl+shift+t是在terminal中打開多個標籤 在多個標籤中切換的方法: 方法1 alt+1 al

原创 [latex]使用algorithm包來編寫僞代碼

1)首先在導言區加入語句: \usepackage{algorithm} \usepackage{algorithmic} 2) \begin{algorithm}[!h] \caption{PARTITION$(A,p

原创 [pocketsphinx] useage

skip to content CMUSphinx User Tools Login Site Tools Recent changes Media Manager Sitemap DOWNLOAD

原创 【算法題】M個有序數組,求其中的第k個數 (2012-10-02 23:34:20)

首先是有人在微博上提出這個“GOOGLE面試題”: 1)有兩個排好序的數組,求其中值 然後在面試中,碰到這樣的題: 2)有兩個排好序的數組,找到其中第k個數 以及擴展: 3)有M個排好序的數組,找到其中第k個數 爲了消除歧義,解釋如下

原创 [latex tikz]畫曲線

點贊 1 收藏 分享 文章舉報 時光在身後擋住去路 發佈了40 篇原創文章 · 獲贊 110 · 訪問量 29萬+ 私信

原创 【valist】c語言可變參數宏

va_list 是C語言中解決變參問題的一組宏。 1.API介紹:頭文件: [cpp] view plain copy  print? #include <stdarg.h>   下面是實現變參函數的一組宏(macro)

原创 [latex]括號總結

功能 語法 顯示 不好看     ( \frac{1}{2} ) 好一點 \left( \frac{1}{2} \right) 您可以使用\left和\right來顯示不同的括號: 功能 語法 顯示 圓括號

原创 [Cmusphinx] install problem

When I install the cmuphinxbase , the error as bellow: configure: error: in `/home/xmh/Downloads/sphinxbase-5prealp

原创 Visual Studio Visual Assist破解安裝

下載地址在 http://pan.baidu.com/s/1miwlEpM INSTALLATION 0) Uninstall VA (if you have installed it before). 0.0) Manually c