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
api.addButtonToToolbar({ | |
title: 'New Journal Entry', | |
icon: 'book', | |
shortcut: 'alt+j', | |
action: async function() { | |
const todayDateStr = api.formatDateISO(new Date()); | |
const todayEntry = await api.runOnServer(async todayDateStr => { | |
return await api.getDateNote(todayDateStr); | |
}, [todayDateStr]); |
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
/* | |
Copy from: http://web.archive.org/web/20090617110918/http://www.openasthra.com/c-tidbits/printing-binary-trees-in-ascii/ | |
Source: http://web.archive.org/web/20071224095835/http://www.openasthra.com:80/wp-content/uploads/2007/12/binary_trees1.c | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |