Skip to content

Instantly share code, notes, and snippets.

@tobek
tobek / README.md
Last active April 3, 2024 15:55
Roam bookmarklet for rich link embeds, read later, and bookmark management

Setup:

  1. Create a browser bookmark (e.g. in bookmarks bar) where the URL is the text in bookmarklet below (open this "raw" link so it's not truncated). Yes it's huge, that's fine. You can name the bookmark "Roam Link" or whatever you like.
    • Alternately, go to this page for easier drag-and-drop bookmarklet setup (GitHub doesn't allow javascript links in gists, sorry)
  2. Go to or create a Roam page called roam/css, and create a CSS code block (``` for code block, then change the language selector dropdown to CSS) and paste the CSS below.

Usage:

  1. On the page you want to create a link embed of, hit the bookmarklet (optional: highlight some text first and it'll be included as a quote)
  2. Go to Roam and paste
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`
@ciceronianus
ciceronianus / Roam-mermaid-colors-in-graph.css
Last active October 1, 2020 06:15
Roam - Mermaid - custom colors for the graph
/*
Author: @CatoMinor3
Version: 1
Date: July 1st
Paypal support: https://www.paypal.me/catominor3
What it does: Custom CSS colors for Mermaid in Roam.
How to use it?
1) Put this code into roam/css
2) Simply assign class to the item under {{mermaid}}:
@andrewbowley
andrewbowley / roam_delegate_tasks.css
Last active February 20, 2021 02:14
Roam Research Delegate Tasks
span.rm-page-ref[data-tag="Delegated"] {
background: #CECECE !important;
color: #555555 !important;
padding: 2px 0px 2px 5px;
font-size: 13px;
line-height: 1em;
font-weight: 500;
border-radius: 3px 0 0 3px;
position:relative;
}
@ciceronianus
ciceronianus / Roam-text_align_center_as_blockquote.css
Last active September 16, 2020 17:38
Roam - text align center as blockquote
/*
Author: @CatoMinor3
Version: 1
Date: June 16th, 2020
Paypal support: https://www.paypal.me/catominor3
How to use: Simply select text align center from the context menu.
*/
.text-align-center {
@jborichevskiy
jborichevskiy / jon-roam-daily-template.md
Last active August 31, 2022 04:41
The daily template I use for Roam Research https://roamresearch.com/
  • Weekly Agenda (created on a different day, and embedded with /Block Reference)
  • [[Morning Questions]]
    • {{[[slider]]}} How many hours of sleep did I get?
    • What's one thing top of mind today?
    • What's the one thing I need to get done today to make progress?
    • Review #[[Index: Questions]] #values
  • Agenda
    • {{[[TODO]]}} Morning walk #goal-health #habit
    • {{[[TODO]]}} Check calendar for scheduled events
  • {{[[TODO]]}} Morning focus hour
@MaggieAppleton
MaggieAppleton / roam-kanban.css
Created February 3, 2020 09:22
Roam Kanban Styling
.kanban-board {
background-color: #fff;
}
.kanban-card {
background-color: white;
margin: 8px;
box-shadow: 0px 1px 2px #9EB3C0;
padding: 10px;
border-radius: 2px;

React Native + macOS + Clojurescript

image

Project Catalyst

Since the recent release of Catalina, macOS has shipped with the ability to allow iOS/iPAD apps to run on macOS without any modification via a featureset known as Project Catalyst.

This is exciting, as writing React Native + Clojurescript apps as a target for the desktop is much more compelling than a pure Electron app (imo).

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.