Skip to content

Instantly share code, notes, and snippets.

View drichardson's full-sized avatar

Doug Richardson drichardson

View GitHub Profile
@drichardson
drichardson / obsidian-web-clipper.js
Last active May 28, 2024 17:40 — forked from kepano/obsidian-web-clipper.js
Using my properties
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@drichardson
drichardson / Out-FileUtf8NoBom.psm1
Created October 24, 2017 20:15 — forked from mklement0/Out-FileUtf8NoBom.ps1
PowerShell function that emulates Out-File for creating UTF-8-encoded files *without a BOM* (byte-order mark).
<#
.SYNOPSIS
Outputs to a UTF-8-encoded file *without a BOM* (byte-order mark).
.DESCRIPTION
Mimics the most important aspects of Out-File:
* Input objects are sent to Out-String first.
* -Append allows you to append to an existing file, -NoClobber prevents
overwriting of an existing file.
* -Width allows you to specify the line width for the text representations