This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Viktor's Block CSS | |
* version: 0.1 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: { {[[roam/js]]}} | |
* - create a clode block pulled under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FIXING resizable interface */ | |
/* fix: collapsed sidebar windows by @_robertkirk */ | |
.window-headers:only-child { | |
text-orientation: mixed; | |
writing-mode: vertical-lr; | |
} | |
/* left sidebar fix */ | |
.roam-sidebar-container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Viktor's Dynamic Block links | |
* version: 0.1 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: { {[[roam/js]]}} | |
* - create a clode block pulled under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Viktor's Roam default date format POC | |
* version: 0.2 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: { {[[roam/js]]}} | |
* - create a clode block pulled under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. create access token https://cloud.ouraring.com/docs/authentication#create-a-personal-access-token | |
// 2. use API 👍 | |
var OURA_TOKEN = '...'; | |
var date = 'date in `YYYY-MM-DD` format'; | |
var res = await fetch("https://api.ouraring.com/v1/sleep?start="+date+"&end="+date+"&access_token="+OURA_TOKEN); | |
var data = (await res.json()).sleep; | |
data = data.length ? data[0] : {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PoC by @filipematossilv and @ViktorTabori | |
// Token for a Slack App. | |
var oauthToken = "TOKEN_HERE"; | |
// Slack app must already have been invited to the channel. | |
// See https://api.slack.com/methods/channels.list on how to get the ID. | |
var notificationChannel = "CHANNEL_HERE"; | |
// Email must be the one used in the Slack that contains the channel. | |
var tagToEmail = { | |
"#[[!name]]": "[email protected]", | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Viktor's Roam FuckItLine POC | |
* version: 0.2 | |
* author: @ViktorTabori | |
* | |
* How to install it: | |
* - go to page [[roam/js]] | |
* - create a node with: { {[[roam/js]]}} | |
* - create a clode block pulled under it, and change its type from clojure to javascript | |
* - allow the running of the javascript on the {{[[roam/js]]}} node |
NewerOlder