原创 node.js 讀取zip中文件內容
1 使用adm-zip,具體網站:https://github.com/cthackers/adm-zip 2 文件目錄爲一個zip文件中,有一個zip包和一個json文件,要做的就是讀取info.json中文件內容3 具體代碼:var A
原创 我的友情鏈接
51CTO博客開發
原创 java 正則表達式
1 需要轉義的字符Java characters that have to be escaped in regular expressions are: \.[]{}()*+-?^$|2
原创 git 相關
1 下載github 上,主分支以外的其他分支"checkout" the remote branch as a new local branch, and specify a new local branch name.git check
原创 node.js 監聽文件變化並打印
1 Use node.js library "chokidar"2 Detail code: var watcher = chokidar.watch("/home/camille/Downloads", { ignored: /[\/\]
原创 Tensorflow related
How to Retrain Inception's Final Layer for New Categories步驟:一 Installing TensorFlow on Ubuntu https://www.tensorflow.o
原创 python 入門idle3
ubuntu 16已經自動安裝python3 . 需要做的就是安裝python的編輯器 sudo apt-get install idle3。Open IDLE, copy the following code below and pre
原创 我的友情鏈接
51CTO博客開發
原创 andorid權威編程指南 筆記
1 創建fragment@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); s
原创 android studio problems
1 在android studio 下新建android project ,編譯沒有問題。而導入已經存在的項目時,一直報錯:Connection refused。這個時候就要考慮是配置哪裏跟自己android studio 本地的不一樣,果
原创 android studio 反編譯apk
android studio 可以將apk導入,解析出AndroidManifest.xml文件。不用再使用工具那麼複雜的解析了。Select Build > Analyze APK in the menu bar and then sel
原创 一些自己認爲好用的軟件
1 時間管理 TeamVizhttp://www.teamviz.com/downloads/
原创 andorid storage total and free
1 在Setting應用中,storage 顯示total and free code:final File path = VolumeInfo.getPath(); final long freeBytes = path.getFreeS
原创 shell 常用命令備忘
1 遍歷當前所有android application project文件夾,查找帶有Test字符的文件夾,編譯之後移動到同一個folder。pattern="Test" for _dir in *"${pattern}"*; do
原创 putty 相關 拷貝本地文件到服務器端
1 在putty安裝目錄下,存在可執行文件pscp.exe,可以複製到c:\windows\system32目錄。win+R 輸入 cmd進入命令行,可以拷貝文件到服務器端home目錄下pscp node-v4.4.5-linux-x64.