Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
class EmailedZipFileExtractor | |
# This class downloads an email from gmail and extracts a file out of a .zip attachment | |
require 'google/apis/gmail_v1' | |
require 'googleauth' | |
require 'zip' | |
# These credentials come from creating an OAuth Web Application client ID | |
# in the Google developer console | |
# |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
When using Rails 3.0 and later we already get jquery-rails for free. Look in the gemfile and you'll see:
gem "jquery-rails"
You can view the full documentation here: source: https://github.com/indirect/jquery-rails
If you take a look in APP_DIR/app/assets/javascripts/application.js, you'll notice the following lines of code: