ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"
brew install go
export GOROOT="/usr/local/opt/go/libexec"
export GOPATH="$HOME/.go"
export PATH="$PATH:$GOROOT/bin:$GOPATH/bin"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /usr/local/go/src/pkg/runtime/runtime-gdb.py | |
b main.main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 推荐做法: | |
static class Stop extends Thread { | |
static void init() { | |
Runtime.getRuntime().addShutdownHook(new Stop()); | |
} | |
@Override | |
public void run() { | |
Thread.currentThread().setName("stop"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! switch { | |
($($a:expr => $b:expr;)* _ => $e:expr $(,)?) => { | |
match () { | |
$(_ if $a => $b,)* | |
_ => $e, | |
} | |
}; | |
} | |
fn f1() -> bool { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<body style="background-color: black;"> | |
<div id="screen" style="display: flex; justify-content: center; align-items: center; height: 80vh"></div> | |
<script> | |
class TextPointSet { | |
constructor() { | |
this.points = {}; | |
this.canvas = document.createElement('canvas'); | |
this.ctx = this.canvas.getContext('2d'); |
OlderNewer