Skip to content

Instantly share code, notes, and snippets.

View rahatzamancse's full-sized avatar

Rahat Zaman rahatzamancse

View GitHub Profile
@sidedwards
sidedwards / newJournalEntry.js
Last active March 6, 2024 18:47
Journal Template for Trilium Notes. https://github.com/zadam/trilium
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]);
@ximik777
ximik777 / print_tree.c
Last active April 27, 2024 05:31
Printing Binary Trees in Ascii
/*
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>