Skip to content

Instantly share code, notes, and snippets.

@xrf
xrf / fortran-dependencies.mk
Created April 15, 2015 10:00
automatically deduce dependencies of Fortran modules in a makefile (requires GNU Make + Python)
# the names of every source file, separated by space;
# you can use a wildcard, or specify them explicitly
F90SRC=$(wildcard *.f90)
# directory in which the object files are located (optional);
# it should end with a slash
#OBJPREFIX=obj/
# note: it's probably a bad idea to put this snippet
# before the first target rule in the makefile
@xrf
xrf / fortran-dependencies.mk
Last active August 29, 2015 14:19
automatically deduce dependencies of Fortran modules in a makefile (requires GNU Make)
# the names of every source file, separated by space;
# you can use a wildcard, or specify the explicitly
F90SRC=$(wildcard *.f90)
# directory in which the object files are located (optional);
# it must end with a slash
#OBJPREFIX=obj/
# note: it's probably a bad idea to put this snippet
# before the first target rule in the makefile

Keybase proof

I hereby claim:

  • I am xrf on github.
  • I am xrf (https://keybase.io/xrf) on keybase.
  • I have a public key whose fingerprint is 1236 84A1 B8FA C2FE E5B0 B74C CD88 E8E0 58AF E8C5

To claim this, I am signing this object:

@xrf
xrf / git-visualize
Created June 5, 2014 18:07
Displays the entire history of a Git repository as a colored tree (in the terminal)
#!/bin/sh
#
# Displays the entire history of a Git repository as a colored tree (in the terminal).
#
# Usage: git-visualize
git log --all --color --date=short --full-history --graph \
--pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%ad %s"