This file contains 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
import "@johnlindquist/kit" | |
// Name: roam clipboard reformatter | |
// Description: Copy nested blocks from Roam and run this script to un-indent and remove brackets | |
// Author: Taylor Bell | |
// Twitter: @taylorbell | |
let outdent = await npm('tiny-dedent') | |
let replaceAll = await npm('just-replace-all') |
This file contains 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
// Name: Split video on silences | |
// Description: detects video silences over a threshold length and deletes the silences | |
import "@johnlindquist/kit" | |
const replaceAll = await npm('just-replace-all') | |
const numbers = await npm('numbers-in-string') | |
const seconds = await npm('seconds-to-timestamp') | |
const chunk = await npm('chunk') | |
const leadingzero = await npm('leadingzero') | |
const MINUTES_OF_SILENCE = 4 |
This file contains 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
// Author: Taylor Bell | |
// Name: Split video on silences | |
// Description: detects video silences over a threshold length and deletes the silences | |
// note: run `brew install ffmpeg` and `brew link ffmpeg` then in ScriptKit run "sync path from terminal to Kit.app" | |
import "@johnlindquist/kit" | |
const replaceAll = await npm('just-replace-all') | |
const numbers = await npm('numbers-in-string') | |
const seconds = await npm('seconds-to-timestamp') |
This file contains 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
import "@johnlindquist/kit" | |
// Author: Taylor Bell | |
// Name: Otter Highlight Cleaner | |
let text = await paste() | |
let lines = text.split('\n') | |
let removedHighlights = lines.filter(x => !x.match(/\[.*\]/)) | |
let removedEmptyLines = removedHighlights.filter(x => x !== '').join('\n') |
This file contains 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
import "@johnlindquist/kit" | |
/* | |
* Highlight the long video we are taking clips out of in Finder | |
*/ | |
let longVideoFiles = await drop() | |
/** | |
* Tell kit we want to be working in the same directory as the source file | |
*/ | |
cd(path.dirname(longVideoFiles[0].path)) |
This file contains 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
import "@johnlindquist/kit" | |
/* | |
* Highlight the long video we are taking clips out of in Finder | |
*/ | |
let longVideoFiles = await drop() | |
/** | |
* Tell kit we want to be working in the same directory as the source file | |
*/ | |
cd(path.dirname(longVideoFiles[0].path)) |
This file contains 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
import "@johnlindquist/kit" | |
/* | |
* Highlight the long video we are taking clips out of in Finder | |
*/ | |
let longVideoFiles = await drop() | |
/** | |
* Tell kit we want to be working in the same directory as the source file | |
*/ | |
cd(path.dirname(longVideoFiles[0].path)) |
This file contains 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
// Author: Taylor Bell | |
// Name: Split video on silences | |
// Description: detects video silences over a threshold length and deletes the silences | |
import "@johnlindquist/kit" | |
const replaceAll = await npm('just-replace-all') | |
const numbers = await npm('numbers-in-string') | |
const seconds = await npm('seconds-to-timestamp') | |
const chunk = await npm('chunk') | |
const leadingzero = await npm('leadingzero') | |
const escape = await npm('escape-path-with-spaces') |
This file contains 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
import "@johnlindquist/kit" | |
/* | |
* Highlight the long video we are taking clips out of in Finder | |
*/ | |
let longVideoFiles = await drop() | |
/** | |
* Tell kit we want to be working in the same directory as the source file | |
*/ | |
cd(path.dirname(longVideoFiles[0].path)) |
This file contains 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
import "@johnlindquist/kit" | |
const replaceAll = await npm('just-replace-all') | |
// Name: | |
let cutsToMake = [ | |
{ | |
"from": "00:00:00", | |
"to": "00:25:58.98", | |
"desc": "part01" | |
}, |