Skip to content

Instantly share code, notes, and snippets.

View brianhsu's full-sized avatar

Brian Hsu brianhsu

View GitHub Profile
鏡子、杯子、襪子
「啊,又把脫下來的襪子隨便亂丟了。真是的,才離開一個星期,
就又開始放任這個壞習慣了。果然沒有人管就不行了呢。」
她看著散在地上的襪子,嘟著嘴說道,同時也一面拾起一隻隻的襪
子,將他們放到客廳擺放在客廳一角的洗衣籃中。
時間還早,她決定好好地再看一看這個曾經有著無數回憶的地方。
之後就要去一個遙遠的地方了,這次也只能稍微做個短暫的停留,
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-signify'
Plug 'derekwyatt/vim-scala'
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'cloudhead/neovim-fuzzy'
Plug 'kien/ctrlp.vim'
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-signify'
Plug 'derekwyatt/vim-scala'
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'cloudhead/neovim-fuzzy'
Plug 'kien/ctrlp.vim'
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.7.5-gentoo Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.7.0-x86_64-linode72 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
"""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle
"""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'derekwyatt/vim-scala'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'Shougo/neocomplete.vim'
app-vim/airline
app-vim/airline-themes
app-vim/ctrlp
app-vim/fugitive
app-vim/gitgutter
app-vim/nerdtree
@brianhsu
brianhsu / sorting.scala
Created May 12, 2016 02:07
Sorting for Scala
def inPlcaeSelectionSort(xs: Array[Int]): Array[Int] = {
def findMinLocation(offset: Int): Int = {
var currentMin = Int.MaxValue
var currentMinIndex = 0
for (i <- offset until xs.size) {
if (xs(i) < currentMin) {
currentMin = xs(i)
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <stdio.h>
using namespace cv;
using namespace std;
class Detector {
public:
Installation
=========================
1. git clone https://github.com/devttys0/libmpsse.git
2. cd cd libmpsse/src/
3 ./configure --prefix=/usr/
4. make
gcc -Wall -fPIC -fno-strict-aliasing -g -O2 -lftdi1 -DLIBFTDI1=1 -c support.c