Skip to content

Instantly share code, notes, and snippets.

View KaimingWan's full-sized avatar

KamiWan KaimingWan

View GitHub Profile
@KaimingWan
KaimingWan / Contents of files
Created October 30, 2015 05:14
These are some test files
file1.txt
John is a good boy!
It is a good question. She is pretty.
file2.txt
John is a good boy!John is a good boy!John is a good boy!John is a good boy!
It is a good question. She is pretty.It is a good question. She is pretty.It is a good question. She is pretty.
file3.txt
@KaimingWan
KaimingWan / CountFileExample.java
Created January 20, 2017 06:10
用ForkJoinPool来统计某个盘符上所有的文件数
package concurrent;
import java.io.File;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
import java.util.concurrent.TimeUnit;
/**
@KaimingWan
KaimingWan / zsh_conf.sh
Last active November 20, 2017 04:53
zsh_conf
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/wanshao/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
#ZSH_THEME="agnoster"