Skip to content

Instantly share code, notes, and snippets.

View tayiorbeii's full-sized avatar

Taylor Bell tayiorbeii

View GitHub Profile
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
// Name:
let cutsToMake = [
{
from: '00:18:38',
to: '00:33:51',
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')
// 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
// 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')
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')
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))
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))
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))
// 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')
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))