Skip to content

Instantly share code, notes, and snippets.

@chatcannon
chatcannon / UseF2Py.cmake
Last active April 19, 2016 17:20
This is a modified version of the UseF2Py.cmake script posted to comp.python.f2py.user by Marcel Loose - see http://blog.gmane.org/gmane.comp.python.f2py.user/page=4 for the original
# +-----------------------------------------------------------------------------+
# | Copyright (C) 2011-2015 |
# | Original by Marcel Loose (loose <at> astron.nl) 2011-2013 |
# | Modified by Chris Kerr (chris.kerr <at> mykolab.ch) 2013-2015 |
# | |
# | This program is free software; you can redistribute it and/or modify |
# | it under the terms of the GNU General Public License as published by |
# | the Free Software Foundation; either version 2 of the License, or |
# | (at your option) any later version. |
# | |
@chatcannon
chatcannon / SPEC.py
Last active December 30, 2015 07:19
Parser for the SPEC file format used for x-ray scattering data
"""SPEC.py - code for reading files in the SPEC data format
Copyright (c) Christopher Kerr 2013
You may use and redistribute this file under the terms of the
GNU General Public Licence (GPL), version 3 or, at your option,
any later version."""
__all__ = ['SPECfile']
import re
@chatcannon
chatcannon / keybase.md
Created November 6, 2014 14:00
Keybase proof

Keybase proof

I hereby claim:

  • I am chatcannon on github.
  • I am acbahivo (https://keybase.io/acbahivo) on keybase.
  • I have a public key whose fingerprint is 022F 0FF2 CB04 2342 7178 334F BA3F 9725 266C DD10

To claim this, I am signing this object: