Skip to content

Instantly share code, notes, and snippets.

Chiawen Chen golopot

Block or report user

Report or block golopot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@golopot
golopot / ffcut
Last active Jun 7, 2019
Cut a video by ffmpeg
View ffcut
#!/bin/bash
inPath=$1
start=$2
end=$3
outPath=@$1
fileDate=$(date -Rr ${inPath})
if [ -z ${end} ]
then
@golopot
golopot / timed-require.js
Created Jan 25, 2019
Wrap require with a timer for debugging slow loading modules
View timed-require.js
const Timer = () => {
let startTime = new Date()
return {
end () {
return (new Date() - startTime) / 1000
}
}
}
const timedRequire = (require) => (path) => {
You can’t perform that action at this time.