Skip to content

Instantly share code, notes, and snippets.

View matochondrion's full-sized avatar

Mat Sachs matochondrion

View GitHub Profile
@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; }
@matochondrion
matochondrion / snippets.html
Created September 11, 2018 00:58
HTML snippets
<meta name="viewport" content="width=device-width, initial-scale=1" />
Co-authored-by: Mat Sachs <matochondrion@gmail.com>
Co-authored-by: Linus Phan <phanlinus@gmail.com>
Co-authored-by: Jacob Coker <jacobleecd@gmail.com>
# 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 / 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>
@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/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 = "mat";
/* Optional folder name such as "Clippings/" */