Skip to content

Instantly share code, notes, and snippets.

View kobe0308's full-sized avatar

Kobe Yu kobe0308

View GitHub Profile
"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'
"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'
@kobe0308
kobe0308 / ssecheck.cpp
Created January 3, 2019 11:41 — forked from hi2p-perim/ssecheck.cpp
Check SSE/AVX instruction support.
/*
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
@kobe0308
kobe0308 / dump_operations.py
Created November 19, 2018 09:27 — forked from sunsided/dump_operations.py
Listing operations in frozen .pb TensorFlow graphs
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()
@kobe0308
kobe0308 / OpenCV_GaussianBlur.cpp
Created March 10, 2018 03:52
OpenCV_GaussianBlur
#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;
@kobe0308
kobe0308 / OpenVX_GaussianBlue.c
Last active March 10, 2018 03:54
OpenVX_GaussianBlue
#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;
" 顯示列號
set number
" 語法高亮度顯示
syntax on
" 標記搜尋到的字串
set hlsearch
" 自動縮排
set autoindent
" 顯示說明
set ruler
@kobe0308
kobe0308 / gist:53f119a3d468c22b963906418e3f15de
Last active February 14, 2017 08:01
opencv build scrip
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
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...
using GParted
http://elinux.org/RPi_Resize_Flash_Partitions#Manually_resizing_the_SD_card_on_Raspberry_Pi