Skip to content

Instantly share code, notes, and snippets.

View rwest's full-sized avatar

Richard West rwest

View GitHub Profile
@rwest
rwest / cantera-fluxes.py
Created July 23, 2022 22:02
Cantera flux methods
"""
A bunch of methods that I have used at some point to make, manipulate, add,
process, integrate, and plot flux diagrams in Cantera. Taken out of context,
and probably not working. But parts of them could be helpful or show one
way of doing things, like getting a DIY integrated-total-flux.
Richard West <[email protected]>
CC-BY attribution suggested :-)
"""
@rwest
rwest / keybase.md
Created April 11, 2017 17:33
Keybase proof

Keybase proof

I hereby claim:

  • I am rwest on github.
  • I am rwest (https://keybase.io/rwest) on keybase.
  • I have a public key ASA-Yk2EIlkIuWnzEhwTlHqlsn-j0OQ7EEBKvwuhTGBfHwo

To claim this, I am signing this object:

@rwest
rwest / 4.8.4 config.log
Last active August 29, 2015 14:21
config.log from trying to build gcc with conda
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ./configure --prefix=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh --libdir=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh/lib --with-gmp=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh --with-mpfr=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh --with-mpc=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh --with-isl=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh --with-cloog=/Users/rwest/anaconda/envs/_build_placehold_placehold_placehold_placehold_placeh --with-boot-ldflags=-Wl,-headerpad_max_install_names --with-stage1-ldflags=-Wl,-headerpad_max_install_names --disable-multilib
## --
@rwest
rwest / Correlations.ipynb
Created April 21, 2015 17:11
An investigation of correlated random variables when sampling a model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwest
rwest / Profiling_data.txt
Created June 11, 2012 14:51
Profiling data for RMG-Py/examples/rmg/methylformate
================================================================================
Profiling Data
================================================================================
Sorted by internal time
Sat Jun 9 08:56:38 2012 /Users/rwest/Code/rmgpy/RMG-Py/examples/rmg/methylformate/RMG.profile
47278589233 function calls (47165643959 primitive calls) in 61955.711 seconds
Ordered by: internal time
List reduced from 1953 to 25 due to restriction <25>
@rwest
rwest / network41809_3.py
Created June 11, 2012 14:38
MEASURE file for Network #41809 for RMG-Py issue #77
# For https://github.com/GreenGroup/RMG-Py/issues/77
################################################################################
#
# MEASURE file for Network #41809
#
# Generated on Sat Jun 9 08:56:38 2012
#
################################################################################
@rwest
rwest / Setup
Created May 11, 2012 22:37
Setup file for building python 2.7.3
# -*- makefile -*-
# The file Setup is used by the makesetup script to construct the files
# Makefile and config.c, from Makefile.pre and config.c.in,
# respectively. The file Setup itself is initially copied from
# Setup.dist; once it exists it will not be overwritten, so you can edit
# Setup to your heart's content. Note that Makefile.pre is created
# from Makefile.pre.in by the toplevel configure script.
# (VPATH notes: Setup and Makefile.pre are in the build directory, as
# are Makefile and config.c; the *.in and *.dist files are in the source
@rwest
rwest / gist:2654587
Created May 10, 2012 17:28
Errors making fame with GNU Fortran (GCC) 4.1.2
[rwest@opportunity fame]$ make
mkdir -p ../../build/fame
gfortran -ftrapv -fbounds-check -frange-check -ggdb -J""../../build/fame"" -O3 -Wall -Wno-unused -c math.f90 -o ../../build/fame/math.o
mkdir -p ../../build/fame
gfortran -ftrapv -fbounds-check -frange-check -ggdb -J""../../build/fame"" -O3 -Wall -Wno-unused -c states.f90 -o ../../build/fame/states.o
mkdir -p ../../build/fame
gfortran -ftrapv -fbounds-check -frange-check -ggdb -J""../../build/fame"" -O3 -Wall -Wno-unused -c _modes.f90 -o ../../build/fame/_modes.o
In file _modes.f90:58
qt = ((2 * 3.141592654 * mass) / (6.626e-34 * 6.626e-34))**(dim/2.0) * V
@rwest
rwest / README
Created January 9, 2012 16:42 — forked from symposion/README
Convert OS X Keychain exported entries into logins for 1Password import
These two files should help you to import passwords from mac OS X keychains to 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they