Skip to content

Instantly share code, notes, and snippets.

View ifyouseewendy's full-sized avatar

Di Wen ifyouseewendy

View GitHub Profile
declare function sayHello(): void;
sayHello();
class Foo {
constructor(
public num: i32
) {}
}
export function add(x: i32, y: i32): i32 {
@ifyouseewendy
ifyouseewendy / obsidian-web-clipper.js
Last active February 11, 2023 05:34 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([
import("https://unpkg.com/[email protected]?module"),
import("https://unpkg.com/@tehshrike/[email protected]"),
]).then(async ([{ default: Turndown }, { default: Readability }]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
const folder = "/2 Cards";