This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Install some tools first | |
# brew install ffmpeg | |
# brew install lame | |
# brew install --HEAD watsonbox/cmu-sphinx/cmu-sphinxbase | |
# brew install --HEAD watsonbox/cmu-sphinx/cmu-pocketsphinx | |
# Place this file in the directory that you have files to convert. | |
# Make this file executable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
def controller_asset_javascript | |
javascript_include_tag(controller_name) if Rails.configuration.assets.precompile.include?("#{controller_name}.js") || !Rails.env.production? | |
end | |
def controller_asset_stylesheet | |
stylesheet_link_tag(controller_name) if Rails.configuration.assets.precompile.include?("#{controller_name}.css") || !Rails.env.production? | |
end | |
end |