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
| Shift+c run "/bin/bash" -c "mpv \"${path}]"" | |
| Shift+j playlist-next | |
| Shift+k playlist-prev |
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
| using System; | |
| using OfficeOpenXml; | |
| namespace ExcelToList | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| string file = @"data.xlsx"; |
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
| // Setup video source folder observer for notifications of new files | |
| var chokidar = require('chokidar'); | |
| var watcher = chokidar.watch(config.videoRawFolder, { | |
| persistent: true, | |
| followSymlinks: false, | |
| usePolling: true, | |
| depth: undefined, | |
| interval: 100, | |
| ignorePermissionErrors: false |
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
| const html = await page.evaluate(() => document.body.innerHTML); | |
| const $ = await cheerio.load(html); | |
| const videoElement = $('video').toArray().map(p => { | |
| return $.html(p); | |
| }); | |
| const video0 = videoElement[0]; | |
| console.log('Video0:', video0); | |
| //<video></video> | |
| const video1 = await page.evaluate(() => document.querySelector('video')); |
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
| #!/bin/sh | |
| # | |
| # Select videos to watch with mpv from the current directory using sxiv. | |
| # | |
| # Caches screenshots for all the videos in the current directory, and then calls | |
| # sxiv on the cache. | |
| # | |
| # requires: ffmpeg | |
| # sxiv | |
| # mpv |