Skip to content

Instantly share code, notes, and snippets.

Avatar
🏢
New Office, still neck deep in code

Izaak "Zaak" Beekman zbeekman

🏢
New Office, still neck deep in code
View GitHub Profile
View doi2bibtex.py
#!/usr/bin/env python
# Take one argument--the doi, and convert it to bibtex using an API
# call to dx.doi.org.
from sys import argv
import os
if argv[0].find('doi') != -1:
# run as executable
View Linux Foundation CLA
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
@zbeekman
zbeekman / datetime-fortran.rb
Last active Jan 31, 2016
[Homebrew](http://brew.sh) formula for datetime-fortran.
View datetime-fortran.rb
class DatetimeFortran < Formula
desc "Fortran time and date manipulation library"
homepage "https://github.com/milancurcic/datetime-fortran"
url "https://github.com/milancurcic/datetime-fortran/archive/v1.4.0.tar.gz"
sha256 "e0fd02aa9ac1805d4779bf8fd9d8ae0c54d9964f07bc4a3a61181b6ae0d37d2e"
head do
url "https://github.com/milancurcic/datetime-fortran.git"
depends_on "autoconf" => :build
@zbeekman
zbeekman / datetime-fortran.rb
Last active Jan 31, 2016
[Homebrew](http://brew.sh) formula for datetime-fortran.
View datetime-fortran.rb
class DatetimeFortran < Formula
desc "Fortran time and date manipulation library"
homepage "https://github.com/milancurcic/datetime-fortran"
url "https://github.com/milancurcic/datetime-fortran/archive/v1.4.2.tar.gz"
sha256 "b500da7e28241ffecb3d06d93fc4d25df71509cb949e472e92a96df843a9f4c9"
head do
url "https://github.com/milancurcic/datetime-fortran.git"
depends_on "autoconf" => :build
View gist:409780
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
@snim2
snim2 / .travis.yml
Last active Nov 7, 2016
Travis-CI recipe for testing LaTeX projects compiled by a Makefile
View .travis.yml
install:
- sudo apt-get install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- sudo apt-get install chktex
script:
- make
- chktex -W # Print version information.
- chktex -q -n 6 *.tex chapters.*.tex 2>/dev/null | tee lint.out
# If lint output is non-empty report an error.
- test ! -s lint.out
@parente
parente / Dockerfile
Last active Jun 15, 2017
Reference Dockerfile for combining jupyter_dashboards and jupyter_declarative widgets
View Dockerfile
# Pin to a known release for sanity
FROM jupyter/all-spark-notebook:0017b56d93c9
# Become root to do the apt-gets
USER root
RUN apt-get update && \
apt-get install -y curl && \
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash - && \
apt-get install --yes nodejs npm && \
@jaidevd
jaidevd / scipy_window_gallery.ipynb
Last active Jun 15, 2017
A gallery of window functions in SciPy
View scipy_window_gallery.ipynb
@zbeekman
zbeekman / brew-install-opencoarrays.sh
Created Jun 16, 2017
A script that will automatically install OpenCoarrays using Homebrew. MPICH and OpenCoarrays will be compiled and installed with GCC-7
View brew-install-opencoarrays.sh
#!/usr/bin/env bash
set -o nounset
set -o pipefail
set -o errexit
set -o errtrace
msg="Press Ctrl-C to abort, or enter to continue"
echo "Tapping homebrew-bundle"
read -rp "${msg}"
brew tap homebrew/bundle
@ZedThree
ZedThree / fortran-dot-graph.py
Last active Jul 13, 2017
Build a dot graph of the Fortran modules in a list of files.
View fortran-dot-graph.py
import re
def build_graph(files,exclude=['hdf5','h5lt','mpi']):
"""Build a dot graph of the Fortran modules in a list of files,
excluding modules named in the list exclude"""
# Start the graph
graph = "digraph G {\n"
deps = {}
p = re.compile("^(?:module|program) ([a-zA-Z0-9_]*)",