Skip to content

Instantly share code, notes, and snippets.

View jjbel's full-sized avatar

Jai Bellare jjbel

View GitHub Profile
@jjbel
jjbel / add_days.js
Created April 17, 2023 17:39
Add days to a Date
function addDays(input_date, days) {
let date = new Date(input_date);
date.setDate(date.getDate() + days);
return date;
}
function formatDate(date) {
const day = date.toLocaleString('default', { day: '2-digit' });
const month = date.toLocaleString('default', { month: 'short' });
const year = date.toLocaleString('default', { year: 'numeric' });
@jjbel
jjbel / gh-pages-doxygen.md
Last active May 15, 2022 07:07
Create Github Pages Docs from annotated C++ source code

Github Pages from C++ source code

The goal is to create Github Pages Docs from C++ code annotated with Doxygen comments

The advantage of this method, compared to say Sphinx, is that we don't have to manually specify the api as Doxygen can extract it from the pre-existing source code

Annotating the code allows preview in editors, for example VSCode. From that we can build docs which can be viewed on a webpage