Skip to content

Instantly share code, notes, and snippets.

View hyqhyq3's full-sized avatar

hyqhyq_3 hyqhyq3

  • moonton
  • Shanghai China
View GitHub Profile
@hyqhyq3
hyqhyq3 / 0_reuse_code.js
Created September 29, 2015 02:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Usage: diskutil coreStorage list
Usage: diskutil coreStorage info[rmation] [-plist]
Usage: diskutil coreStorage convert
Usage: diskutil coreStorage revert
Usage: diskutil coreStorage create lvgName
Usage: diskutil coreStorage delete lvgUUID
Usage: diskutil coreStorage addDisk lvgUUID NewMemberDeviceName
Usage: diskutil coreStorage removeDisk pvUUID
Usage: diskutil coreStorage deleteVolume lvUUID
Usage: diskutil coreStorage resizeVolume lvUUID size
INCLUDE (FindPackageHandleStandardArgs)
FIND_PATH (FFMPEG_ROOT_DIR
NAMES libavcodec/avcodec.h include/libavcodec/avcodec.h
PATHS ENV FFMPEG_ROOT
DOC "FFmpeg root directory")
FIND_PATH (FFMPEG_INCLUDE_DIR
NAMES libavcodec/avcodec.h
HINTS ${FFMPEG_ROOT_DIR}
@hyqhyq3
hyqhyq3 / streambuf.js
Last active December 18, 2015 07:09 — forked from anonymous/streambuf.js
/**
* Created with JetBrains WebStorm.
* User: kiyangqi
* Date: 13-6-9
* Time: 下午11:36
* To change this template use File | Settings | File Templates.
*/
function StreamBuf() {
this.chunks = [];