Skip to content

Instantly share code, notes, and snippets.

View Stvad's full-sized avatar

Vlad Sitalo Stvad

View GitHub Profile
@Stvad
Stvad / quick-capture.js
Created December 11, 2024 01:07
Roam Research shortcut to create a new block on a daily note page and open it in sidebar with focus on it
(function () {
// Define the keyboard shortcut
const shortcut = {
key: "N",
modifiers: ["ctrlKey", "shiftKey"],
};
// Function to create a new block, open it in the sidebar, and set focus
async function createBlockAndFocus() {
const todayDate = new Date();
This file has been truncated, but you can view the full file.
<script src="https://hypothes.is/embed.js" async></script><!DOCTYPE html> <html class="vzgrusjbb idc0_349" lang=en-US style><!--
Page saved with SingleFile
url: https://www.swingliteracy.com/lesson/4-1-1-finding-the-beat-in-your-body/
saved date: Tue Nov 28 2023 23:49:23 GMT-0800 (Pacific Standard Time)
--><meta charset=utf-8><style id=tcb-style-base-tcb_symbol-38871 class=tcb-lightspeed-style data-ls-optimized=1>:root{--sf-img-58: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKYAAADMCAMAAAG5PhjvAAADAFBMVEUAAAAAAP//AAAA//////8Ao6BEQY4AAJ7//5v47jX4jY6ZmfyTlJWTnBLEWlmio6IAblhInJNVwv9h0s9mZdIAAGL//775oaLFyMhhYF3+xcbIzGDTV8jQ0tROTqNsbGpUTzcAAD0ATk3919ju8J/Eu7stiN3//tmqxParcm7NltB1g6398O245f/R0ZiXreHV29yFrrzlzcL92s2AlssuOHdRDxJBR1xLWXlgcpMDCBr54tpWZoPRpZlrg6kyOUzauq2Gn9l9lMT218v/yqXpycC2mZKrtMhgVVVuYl9WaY62mYv32s52kcjex8T8/PXTtqrpyL1lfrBCUW92gJ/Go5YvN0mQkKBCMikfGhn41cf/483Ts6TpyLtWSUYhKjqDe4FbcZxzjMWmr8tLXIDhvrXW1+A9TGj11sr9z7vlxbktNUVGODFPZ5Y0P1SsjYTTsaMiKTfx0MN8f5rhwbRDVXhmg7s4RmHpvKpbTk57cXgWITO+mIt4
This file has been truncated, but you can view the full file.
<script src="https://hypothes.is/embed.js" async></script><div><style>.ͼ1.cm-editor.cm-focused {outline: 1px dotted #212121;}
.ͼ1.cm-editor {position: relative !important; box-sizing: border-box; display: flex !important; flex-direction: column;}
.ͼ1 .cm-scroller {display: flex !important; align-items: flex-start !important; font-family: monospace; line-height: 1.4; height: 100%; overflow-x: auto; position: relative; z-index: 0;}
.ͼ1 .cm-content[contenteditable=true] {-webkit-user-modify: read-write-plaintext-only;}
.ͼ1 .cm-content {margin: 0; flex-grow: 2; flex-shrink: 0; min-height: 100%; display: block; white-space: pre; word-wrap: normal; box-sizing: border-box; padding: 4px 0; outline: none;}
.ͼ1 .cm-lineWrapping {white-space: pre-wrap; white-space: break-spaces; word-break: break-word; overflow-wrap: anywhere; flex-shrink: 1;}
.ͼ2 .cm-content {caret-color: black;}
.ͼ3 .cm-content {caret-color: white;}
.ͼ1 .cm-line {display: block; padding: 0 2px 0 4px;}
.ͼ1 .cm-selectionLayer {z-index: -1; contain: size
@Stvad
Stvad / index.html
Last active November 29, 2022 10:56
This file has been truncated, but you can view the full file.
<div><style>
:host {
/* Typography */
--amplify-font-family: 'Amazon Ember', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
--amplify-text-xxs: 0.75rem;
--amplify-text-xs: 0.81rem;
--amplify-text-sm: 0.875rem;
--amplify-text-md: 1rem;
--amplify-text-md-sub: 1.15rem;
@Stvad
Stvad / index.js
Last active September 10, 2022 20:01
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-J4JT59VSQG');
<script src="https://hypothes.is/embed.js" async></script>function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'G-J4JT59VSQG')
<script src="https://hypothes.is/embed.js" async></script>https://tanacommunity.slack.com/archives/C03E3LQ105B/p1657892420771969
This file has been truncated, but you can view the full file.
<script src="https://hypothes.is/embed.js" async></script><div><style>.ͼ1.cm-editor.cm-focused {outline: 1px dotted #212121;}
.ͼ1.cm-editor {position: relative !important; box-sizing: border-box; display: flex !important; flex-direction: column;}
.ͼ1 .cm-scroller {display: flex !important; align-items: flex-start !important; font-family: monospace; line-height: 1.4; height: 100%; overflow-x: auto; position: relative; z-index: 0;}
.ͼ1 .cm-content {margin: 0; flex-grow: 2; min-height: 100%; display: block; white-space: pre; word-wrap: normal; box-sizing: border-box; padding: 4px 0; outline: none;}
.ͼ1 .cm-lineWrapping {white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;}
.ͼ2 .cm-content {caret-color: black;}
.ͼ3 .cm-content {caret-color: white;}
.ͼ1 .cm-line {display: block; padding: 0 2px 0 4px;}
.ͼ1 .cm-selectionLayer {z-index: -1; contain: size style;}
.ͼ1 .cm-selectionBackground {position: absolute;}
This file has been truncated, but you can view the full file.
<script src="https://hypothes.is/embed.js" async></script><div><style>.ͼ1.cm-editor.cm-focused {outline: 1px dotted #212121;}
.ͼ1.cm-editor {position: relative !important; box-sizing: border-box; display: flex !important; flex-direction: column;}
.ͼ1 .cm-scroller {display: flex !important; align-items: flex-start !important; font-family: monospace; line-height: 1.4; height: 100%; overflow-x: auto; position: relative; z-index: 0;}
.ͼ1 .cm-content {margin: 0; flex-grow: 2; min-height: 100%; display: block; white-space: pre; word-wrap: normal; box-sizing: border-box; padding: 4px 0; outline: none;}
.ͼ1 .cm-lineWrapping {white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;}
.ͼ2 .cm-content {caret-color: black;}
.ͼ3 .cm-content {caret-color: white;}
.ͼ1 .cm-line {display: block; padding: 0 2px 0 4px;}
.ͼ1 .cm-selectionLayer {z-index: -1; contain: size style;}
.ͼ1 .cm-selectionBackground {position: absolute;}
<script src="https://hypothes.is/embed.js" async></script>