Skip to content

Instantly share code, notes, and snippets.

pragma solidity ^0.4.17;
import "./ERC20MiniMe.sol";
import "./CappedCrowdsale.sol";
import "./FinalizableCrowdsale.sol";
import "./TokenController.sol";
import "./Pausable.sol";
/**
* @title EthealNormalSale
@thesved
thesved / bmc-template
Last active October 4, 2021 07:36
Business Model Canvas in Roam Research w/ tables and block embeds
- [[Business Model Canvas]] test
- table: Roam Research BMC
- {{[[table]]}}
- ((top row id))
- ((bottom row id))
- structure
- intermediary rows
- {{[[table]]}}
- {{[[embed]]: ((activity id))}}
- {{[[embed]]: ((resource id))}}
@thesved
thesved / roam-table-embed.css
Created June 5, 2020 22:56
Team Alignment Map in Roam Research
/* don't limit the block width for tables */
.rm-block-text {
max-width: none!important;
}
/* clean up tables embedded in tables and blocks within tables */
.roam-table, .roam-table th, .roam-table td, .roam-table tr {
padding:0!important;
vertical-align: top;
min-width:auto!important;
@thesved
thesved / roam-auto-enclose.js
Last active October 12, 2020 17:33
Roam Research Auto Enclose for quotes et al
/*
* Viktor's Roam Native Autoenclose PoC
* version: 0.3
* author: @ViktorTabori
*
* How to install it:
* - go to page [[roam/js]]
* - create a node with: {{[[roam/js]]}}
* - create a clode block under it, and change its type from clojure to javascript
* - allow the running of the javascript on the {{[[roam/js]]}} node
@thesved
thesved / day-night.md
Last active June 29, 2020 21:58
Roam Research day-night css

core

/* IMPORT CORE THEME */
@import url('https://azlen.github.io/roam-themes/core.css');

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=family=Source+Sans+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');	

canvas[data-id="layer2-node"] {	
    filter: invert(1) hue-rotate(110deg) saturate(2.5);	
- (In)Validated Table Example
- {{[[table]]}}
- {{[[embed]]: ((QcQfPuVk1))}}
- {{[[embed]]: ((ibFRCAD6x))}}
- {{[[embed]]: ((S-2e-IjsR))}}
- {{[[embed]]: ((-eUj_vvA_))}}
- {{[[embed]]: }}
- {{[[embed]]: }}
- {{[[embed]]: }}
- {{[[embed]]: }}
chrome.extension.sendMessage({}, function(response) {
var readyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(readyStateCheckInterval);
var actions = [
[function(){return clickNode('.bp3-icon-more', '')}, 10],
[function(){return clickNode('a.bp3-menu-item', 'Export All')}, 10],
[function(){return clickNode('.bp3-dialog .bp3-button', 'Markdown')}, 10],
[function(){return clickNode('.bp3-dialog a.bp3-menu-item', 'JSON')}, 10],
- [[💎 permanent notes]]
- author::
- source::
- date::
- tags::
- meta game::
- status:: [[in progress]]
- {{[[TODO]]}} meta data added
- {{[[TODO]]}} meta game added
- {{[[TODO]]}} notes written
- [[✏️ literature notes]]
- author::
- source::
- date::
- tags::
- meta game::
- status:: [[in progress]]
- {{[[TODO]]}} meta data added
- {{[[TODO]]}} meta game added
- {{[[TODO]]}} quotes collected
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`