All-in-one booklet maker: builds a Docker image containing mdbook, wkhtmltopdf
and pypdf, then runs the full pipeline on a Markdown file:
FILE.md -> FILE.md.html (mdbook) -> FILE.pages.pdf (wkhtmltopdf) -> FILE.book.pdf (pypdf)
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-claude-code.ps1 | |
| # Scaffolds Claude Code Docker files and manages the container for a given repo. | |
| # | |
| # Usage: | |
| # pwsh ~/Downloads/setup-claude-code.ps1 ~/dev/myrepo | |
| # pwsh ~/Downloads/setup-claude-code.ps1 . | |
| param( | |
| [Parameter(Mandatory = $true, Position = 0)] | |
| [string]$RepoPath, |
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
| namespace Somewhere | |
| { | |
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| /// <summary> |
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
| /* | |
| * Report browser settings like whatsmybrowser.org | |
| * Inspired by | |
| * http://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript | |
| */ | |
| (function () { | |
| "use strict"; | |
| var extractDataFromClient, definePropertySupported; |
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
| public static class Utility | |
| { | |
| /// <summary> | |
| /// Buffer-copy the specified StringBuilder contents into a text writer. | |
| /// </summary> | |
| /// <param name="stringBuilder"></param> | |
| /// <param name="stringWriter"></param> | |
| /// <returns></returns> | |
| public static long CopyTo(this StringBuilder stringBuilder, TextWriter stringWriter) | |
| { |
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
| namespace Somewhere | |
| { | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| // from <https://gist.github.com/sandrock/d1fb3040e1c9326d8dd16b3bad8930ac> | |
| /// <summary> |
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/bash | |
| value=v1.20.03-xx7 | |
| semver=$(echo "$value" | sed -r "s/^v?([0-9]+)\.([0-9]+)\.([0-9]+)(.*)$/\1 \2 \3 \4/") ; semver=( $semver ) | |
| echo "result: ${semver[0]} ${semver[1]} ${semver[2]} ${semver[3]}" | |
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
| namespace SrkToolkit.Common | |
| { | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| /// <summary> | |
| /// Proxies a collection of <typeparamref name="TSource"/> into a collection of <typeparamref name="T"/> using a direct cast mehod. | |
| /// </summary> |
NewerOlder