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
| ls * | foreach-object { $fold = $_.Name.Replace('[', '`[').Replace(']', '`]'); Compress-Archive -path ".\$($fold)\*" -compressionlevel optimal -DestinationPath ".\$($_.name).zip"; mv ".\$($fold).zip" "$($fold).cbz" |
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 fs = require('fs'); | |
| const path = require('path'); | |
| const yargs = require('yargs'); | |
| async function alphabetizeDirectory(directory, whatIf) { | |
| if (!fs.existsSync(directory)) { | |
| throw `${directory} not found`; | |
| } | |
| const files = fs.readdirSync(directory).map(f => path.join(directory, f)).filter(f => !fs.lstatSync(f).isDirectory()); | |
| const letters = new Set(); |
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
| <html> | |
| <head> | |
| <script type="application/javascript"> | |
| (function () { | |
| let tweets = null; | |
| let handle = null; | |
| /** | |
| * @param {File} file | |
| */ |
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
| Param( | |
| [string]$RootDirectory = $(pwd).Path, | |
| [string[]]$UnwantedExtensions | |
| ) | |
| $Source = @" | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; |