Skip to content

Instantly share code, notes, and snippets.

KamiWan KaimingWan

View GitHub Profile
View zsh_conf.sh
# 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"
@KaimingWan
KaimingWan / CountFileExample.java
Created Jan 20, 2017
用ForkJoinPool来统计某个盘符上所有的文件数
View CountFileExample.java
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 / Contents of files
Created Oct 30, 2015
These are some test files
View Contents of 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
You can’t perform that action at this time.