Skip to content

Instantly share code, notes, and snippets.

@byingyang
Created April 4, 2009 20:19
Show Gist options
  • Save byingyang/90287 to your computer and use it in GitHub Desktop.
Save byingyang/90287 to your computer and use it in GitHub Desktop.
Script to open web page containing solution to a calcchat.com problem
#!/usr/bin/env ruby
chapter, section, question = ARGV
letter = ('a'[0] + section.to_i - 1).chr
`open 'http://calcchat.tdlc.com/calcchat/printsolution.jsp?roomName=Calculus%208e%20#{chapter}.#{section}%20Ex%20#{question}&artName=se#{'%02d' % chapter}#{letter}01#{'%03d' % question}&chapFolder=#{'%02d' % chapter}&secFolder=#{letter}&solutionPath=http://calcchat.tdlc.com/solutionart/calc8e/'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment