This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Vim Plugins | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'vim-airline/vim-airline' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "Vim Plugins | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'vim-airline/vim-airline' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Check SSE/AVX support. | |
| This application can detect the instruction support of | |
| SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4a, SSE5, and AVX. | |
| */ | |
| #include <iostream> | |
| #ifdef _MSC_VER | |
| #include <intrin.h> | |
| #endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import os | |
| import sys | |
| from typing import Iterable | |
| import tensorflow as tf | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('file', type=str, help='The file name of the frozen graph.') | |
| args = parser.parse_args() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <opencv2/opencv.hpp> | |
| using namespace cv; | |
| int main(){ | |
| Mat src = imread("lena_gray.jpg",CV_LOAD_IMAGE_GRAYSCALE); | |
| Mat GaussianBlur; | |
| GaussianBlur(src, GaussianBlur, Size(3,3) ,0 ,0); | |
| imshow("origin", src); | |
| imshow("gaussianBlur_3", GaussianBlur1); | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <VX/vx.h> | |
| void main() | |
| { | |
| vx_status status = VX_FAILURE; | |
| //Step 1.Create Context | |
| vx_context context = vxCreateContext(); | |
| if (vxGetStatus((vx_reference)context) == VX_SUCCESS) | |
| { | |
| vx_uint32 i = 0, w = 5184, h = 3456; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 顯示列號 | |
| set number | |
| " 語法高亮度顯示 | |
| syntax on | |
| " 標記搜尋到的字串 | |
| set hlsearch | |
| " 自動縮排 | |
| set autoindent | |
| " 顯示說明 | |
| set ruler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/opencv/opencv_contrib/modules -D WITH_LAPACK=OFF .. | |
| ref | |
| http://zzfei.com/archives/process-solving-a-compilation-problem.html | |
| http://stackoverflow.com/questions/37554554/attributeerror-module-object-has-no-attribute-face | |
| https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/712495 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| factory reset | |
| >>> import os | |
| >>> os.mkfs('/flash | |
| can't not upgrade lopy | |
| Namespace(file=None, port='/dev/ttyUSB0', speed=921600, tar='/tmp/tmp.ybjlW9zQZe/update.tar.gz') | |
| Connecting... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using GParted | |
| http://elinux.org/RPi_Resize_Flash_Partitions#Manually_resizing_the_SD_card_on_Raspberry_Pi |
NewerOlder