Skip to content

Instantly share code, notes, and snippets.

View rwest's full-sized avatar

Richard West rwest

View GitHub Profile
@rwest
rwest / GoogleVoiceDialerAction.scpt
Created October 6, 2011 22:54 — forked from matthewtodd/GoogleVoiceDialerAction.scpt
Command-line Google Voice dialer and Mac OSX Address Book Plug-In
-- Drop this script in ~/Library/Address Book Plug-Ins
-- Edit the path in the "do shell script" line
using terms from application "Address Book"
on action property
return "phone"
end action property
on action title for aPerson with aNumber
return "Dial with Google Voice"
end action title
@rwest
rwest / float.py
Created March 31, 2011 20:02
A python function to convert FORTRAN formatted float strings into floats
import re
re_f_float_neg = re.compile('(-?[0-9.]*)(-\d\d\d)')
def fortran_float(input_string):
"""
Return a float of the input string, just like `float(input_string)`,
but allowing for Fortran's string formatting to screw it up when
you have very small numbers (like 0.31674-103 instead of 0.31674E-103 )
"""
try:
fl = float(input_string)
@rwest
rwest / autoxidation_rebased.diff
Created February 10, 2011 22:28
Differences between before and after my merge
diff --git a/Makefile b/Makefile
index 1084fa7..d70dfbd 100644
--- a/Makefile
+++ b/Makefile
@@ -16,21 +16,40 @@ BINDIR=$(CURDIR)/bin
# The directory in which to run RMG (used for the test)
RUNDIR=$(CURDIR)/run
-# The Fortran 90 compiler to use and flags to use when compiling Fortran 90
-# code
#!/usr/bin/ruby
require 'osx/foundation'
OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework'
include OSX
$d=File.basename Dir.pwd
Dir.chdir '..'
fsevents_cb = proc do |stream, ctx, numEvents, paths, marks, eventIDs|
# system "rsync -L -C --delete -rt --rsh='ssh -p 2222' --exclude 'public/bundles' '#{$d}' 'eanderson@localhost:/home/eanderson/sandbox/'"
diff --git a/chemkin/chem.inp b/chemkin/chem.inp
index a28712d..95509b3 100644
--- a/chemkin/chem.inp
+++ b/chemkin/chem.inp
@@ -4430,16 +4430,18 @@ CHEB / -7.8977000e-01 3.1727000e-01 1.0813000e-02 -6.8075000e-03 /
CHEB / -4.6521000e-01 9.6482000e-02 2.6498000e-02 -2.1226000e-03 /
CHEB / -2.5026000e-01 1.1427000e-03 1.6256000e-02 2.5171000e-03 /
-
-HCjO(15)+Hj(13)(+m)=CO(8)+H2(14)(+m) 1.0E0 0.0 0.0 !NetReaction from PDepNetwork #26 (CH2O)
diff --git a/run/RMG.log b/run/RMG.log
index 154ee3d..196b6cb 100644
--- a/run/RMG.log
+++ b/run/RMG.log
@@ -5,7 +5,7 @@
# #
# #
# This java code was compiled by ant at: #
-# 2011-01-19T13:45:21
+# 2011-01-19T13:52:03
Richard-Wests-MacBook-Pro:Cellar rwest$ brew install cairo -vd
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
CPPFLAGS: -I/usr/local/Cellar/libpng/1.2.44/include
LDFLAGS: -L/usr/local/Cellar/libpng/1.2.44/lib
MAKEFLAGS: -j2
2010-08-27 18:21:32,733 INFO org.xmlcml.cml.crystaleye.AbstractCrystaleyeVisitor @ chemicalTagger
2010-08-27 18:21:32,733 INFO org.xmlcml.cml.crystaleye.AbstractCrystaleyeVisitor @ Input directory: /Users/rwest/XCodeProjects/PeterMurrayRust/patentData/../patentData
2010-08-27 18:21:32,733 INFO org.xmlcml.cml.crystaleye.AbstractCrystaleyeVisitor @ listing files to generate: chemicalTagger ..filter.. org.xmlcml.cml.crystaleye.util.CrystaleyeUtil$3@56a47241
2010-08-27 18:21:36,045 INFO org.xmlcml.cml.crystaleye.AbstractCrystaleyeVisitor @ found potential sources: 7085
2010-08-27 18:24:30,387 ERROR org.xmlcml.cml.crystaleye.supptext.ChemicalTaggerVisitor @ Cannot parse with ANTLR:
org.antlr.runtime.tree.RewriteCardinalityException: rule oscarcm
at org.antlr.runtime.tree.RewriteRuleElementStream._next(RewriteRuleElementStream.java:165)
at org.antlr.runtime.tree.RewriteRuleElementStream.nextTree(RewriteRuleElementStream.java:145)
at uk.ac.cam.ch.wwmm.pregenerated.ChemicalChunkerParser.oscarCompound3(Chemica
<?xml version="1.0" encoding="UTF-8"?>
<log>
<activity filename="null" action="zip" startDate="8_26_10_1_41_PM" finishDate="8_26_10_1_59_PM">
<record filename="/Users/rwest/XCodeProjects/PeterMurrayRust/patentData/../patentData/EPO-2009-03-04.xml"/>
<record action="increased files from 1 to 0"/>
</activity>
<activity filename="null" action="unzip" startDate="8_26_10_1_59_PM" finishDate="8_26_10_1_59_PM">
<record filename="/Users/rwest/XCodeProjects/PeterMurrayRust/patentData/../patentData/EPO-2009-03-04/EP 1023339B1.zip"/>
<record filename="/Users/rwest/XCodeProjects/PeterMurrayRust/patentData/../patentData/EPO-2009-03-04/EP 1064300B1.zip"/>
<record filename="/Users/rwest/XCodeProjects/PeterMurrayRust/patentData/../patentData/EPO-2009-03-04/EP 1123099B1.zip"/>
From Jing Song's thesis:
C. D. Wijaya made the rules for ranking the kinetics. Here, the
author quotes the description of the ranking rules in her thesis to illustrate the meaning of
kinetics rank: "The quality rank number ranges from 1 to 5, with the 1 being most reliable.
Rank 1 is assigned to rate rules parameters that are in good agreement with several
literature data. Parameters obtained from direct measurements in experiments, or from
high-level quantum chemistry calculations that are in good agreement with experimental
results are ranked 2. Results from direct measurements, but at very limited temperature