Skip to content

Instantly share code, notes, and snippets.

View divideby0zero's full-sized avatar
🌴
On vacation

divideby0zero

🌴
On vacation
View GitHub Profile
@ChristopherA
ChristopherA / Plot_and_Story_Structure-Links.md
Last active June 30, 2022 04:02
Plot & Story Structure - Links
@RobinLinus
RobinLinus / covenants.md
Last active June 12, 2024 19:23
A collection of resources related to covenants
@media only screen and (max-width: 600px) {
/* main page */
.roam-article, .roam-center > div[style*="width: 100%; height: 100%;"] {
width: 200vw!important;
}
.roam-article, #all-pages-search, .roam-block-container {
max-width: 200vw!important;
}
}
@taylormitchell
taylormitchell / wiki2roam.js
Created August 20, 2020 13:07
Copy selection from a wikipedia page and convert the hyperlinks to Roam aliases
var url = document.URL;
var title = url.split("/").pop().replace(/#.*/,"").replace("_"," ");
var range = window.getSelection().getRangeAt(0);
var selectionContents = range.cloneContents();
var selectionNodes = selectionContents.childNodes;
// Convert hyperlinks to Roam references
var selection = "";
selectionNodes.forEach((node) => {
if (node.nodeName=="B") {
/*
* Roam template PoC by @ViktorTabori
* 0.1alpha
*
* forked by @everruler12
* v1 2020-08-07
* include moment.js and replace ::current_time:: and ::today:: variables in template
*
* How to install it:
* - go to `roam/js` page`
Copy this to roam/js page, including the "{{[[roam/js]]}}" node:
- {{[[roam/js]]}}
- ```javascript
/*
* Roam template PoC by @ViktorTabori
* 0.1alpha
*
* How to install it:
* - go to `roam/js` page`
// ==UserScript==
// @name Roam YouTube timestamp controls
// @namespace learnstream.org
// @version 0.1
// @description Add timestamp controls to YouTube videos embedded in Roam
// @author Ryan Muller <ryanmuller@google.com>
// @match https://*.roamresearch.com
// @grant none
// ==/UserScript==
// Copyright 2020 Google LLC.
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'GT America', sans-serif;
}
div,
- Meta
- I started writing this on Slack, and finally decided I'd write it on my Roam, that way I have these notes, and it's also easy for you to copy to your Roam if you so desire
- Communications
- One Roam or back and forth
- A manual approach would be just including the whole page in an email, I could paste it over my page, make edits, put it in an email to you, you paste it back into your Roam and make edits etc...
- But I'm happy to just go look at your Roam, easier for now)...
- Notifications
- Either way, for now you need to ping me when you've made an update, since there is no notification (for you, I'm assuming pinging your daily page is sufficient - hoping you don't miss any days :))
- Roam format
- simplest - highlight comments (but only works once)
@ordishs
ordishs / verify.js
Last active March 15, 2024 00:30
Small example of the steps needed to verify the merkle proofs of a transaction provided by WhatsOnChain.
const crypto = require('crypto')
const assert = require('assert')
function sha256 (buffer) {
assert(Buffer.isBuffer(buffer), `Argument must be a buffer, received ${typeof buffer}`)
const hash = crypto.createHash('sha256')
hash.update(buffer)
return hash.digest()
}