Skip to content

Instantly share code, notes, and snippets.

View smutch's full-sized avatar

Simon Mutch smutch

View GitHub Profile
@JayKickliter
JayKickliter / compdb.mk
Created February 28, 2018 21:26
Generate 'compile_commands.json' in Makefile
%.compdb_entry: %.c
@echo " {" > $@
@echo " \"command\": \"cc $(CFLAGS) $(CPPFLAGS) -c $<\"," >> $@
@echo " \"directory\": \"$(CURDIR)\"," >> $@
@echo " \"file\": \"$<\"" >> $@
@echo " }," >> $@
COMPDB_ENTRIES = $(addsuffix .compdb_entry, $(basename $(SOURCES)))
compile_commands.json: $(COMPDB_ENTRIES)
@smutch
smutch / meraxes-on-raijin.md
Last active July 21, 2020 01:20
Running Meraxes on Raijin with a new input sim

Meraxes on Raijin

Tested with the following modules:

- Package -----------------------------+- Versions -+- Last mod. ------
gcc/4.9.0                                            2014/07/03  4:40:12
openmpi/4.0.0                                        2019/01/30  4:13:57
cmake/3.14.4                                         2019/05/16 23:37:18
gsl/2.5 2018/06/21 0:53:02
@maciejpedzich
maciejpedzich / TableOfContents.astro
Last active March 17, 2025 14:14
Astro Table Of Contents Component + Sample Usage
---
import type { MarkdownHeading } from 'astro';
type Props = {
headings: MarkdownHeading[];
};
type HeadingWithSubheadings = MarkdownHeading & {
subheadings: MarkdownHeading[];
};