Skip to content

Instantly share code, notes, and snippets.

View kevinchiu's full-sized avatar

Kevin Chiu kevinchiu

View GitHub Profile
What is this?
It's cool.
def solar_rebates(state, electricity, PVcost, PVcapacity, PVtype)
#electricity is the total electricity produced in a year in kWh
#PVcapacity is the total power of the installation in kW
#PVtype is "residential" or "non-residential"
@tax_credit = 0.0
@rebate = 0.0
@production_credit = 0.0
@REC_sale = 0.0
@residential_rebate = 0.0
map.connect 'mail/:to/:subject/:body',
:controller => 'email',
:action => 'send',
:to => '/.*/',
:subject => '/.*/',
:body => '/.*/'
ArgumentError in EmailController#send
wrong number of arguments (1 for 0)
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:391:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:386:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:433:in `call'
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn -r 42498
pushd llvm-svn
./configure --enable-optimized
make ENABLE_OPTIMIZED=1
sudo make install
LLVMOBJDIR=`pwd`
popd
svn checkout http://iphone-dev.googlecode.com/svn/trunk/ iphone-dev
pushd iphone-dev
CPPFLAGS=$(OPTFLAGS) $(OTHERFLAGS) $(INCLUDE_PATH) $(DEFINES)
BUNDLER_DEFINES=-D__NO_UI__ -D__BUNDLER__ -D__BUNDLER_DISTR__
BUNDLER_OBJS=BaseApp.o BundlerApp.o keys.o Register.o Epipolar.o \
Bundle.o BundleFast.o MatchTracks.o Camera.o Geometry.o \
ImageData.o SifterUtil.o BaseGeometry.o BundlerGeometry.o \
BoundingBox.o BundleAdd.o ComputeTracks.o BruteForceSearch.o \
BundleIO.o ProcessBundle.o BundleTwo.o Decompose.o \

Keybase proof

I hereby claim:

  • I am kevinchiu on github.
  • I am kevinchiu (https://keybase.io/kevinchiu) on keybase.
  • I have a public key whose fingerprint is 4C94 87A7 742D DE8C 54F5 8DE5 47FB 6A56 0026 5913

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kevinchiu on github.
  • I am kevinchiu (https://keybase.io/kevinchiu) on keybase.
  • I have a public key whose fingerprint is 7B7E EABD 7211 5C6F F66D F1F9 DA87 AFA1 3C77 C9A7

To claim this, I am signing this object: