Skip to content

Instantly share code, notes, and snippets.

View matochondrion's full-sized avatar

Mat Sachs matochondrion

View GitHub Profile
@matochondrion
matochondrion / obsidian-web-clipper.js
Last active September 5, 2023 03:20 — 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 = "mat";
/* Optional folder name such as "Clippings/" */
@matochondrion
matochondrion / index.html
Created June 16, 2021 01:46
Tree multi-select (jsTree)
Based on <a href="https://www.jstree.com/">jsTree</a>.
<hr/>
Filter: <input type="text" id="search" /><button id="clear">Clear</button>
<div id="jstree">
</div>
<p>Selected items:</p>
<ul id="output">
</ul>
Co-authored-by: Mat Sachs <[email protected]>
Co-authored-by: Linus Phan <[email protected]>
Co-authored-by: Jacob Coker <[email protected]>
# use the following command to set the local repo commit template
# to this file
# git config commit.template /absolute/path/to/file(.stCommitMsg)
@matochondrion
matochondrion / snippets.html
Created September 11, 2018 00:58
HTML snippets
<meta name="viewport" content="width=device-width, initial-scale=1" />
@matochondrion
matochondrion / reset.css
Last active September 11, 2018 00:57
CSS snippets
/*
----------------------------------------
Tantek Celik's Whitespace Reset
Author: Tantek Celik, Shane Riley
Version: (CC) 2010 Some Rights Reserved - http://creativecommons.org/licenses/by/2.0
Description: Resets default styling of browsers to a common base
----------------------------------------
*/
ul, ol { list-style: none; }