This file contains 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
# config/environments/development.rb | |
Hello::Application.configure do | |
# ... | |
# https://rails.lighthouseapp.com/projects/8994/tickets/4676-reload-routes-on-each-request-in-dev-mode | |
service_reloader = ActiveSupport::FileUpdateChecker.new(Dir["app/services/**"]) { Rails.application.reload_routes! } | |
config.to_prepare do | |
service_reloader.execute_if_updated |
This file contains 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
;; Stuff for exporting formatted code snippets using Pygments | |
;; <http://pygments.org/>. Install pygments (e.g. pip install | |
;; pygments) to use. | |
(setq pygmentize-lexers (make-hash-table)) | |
(puthash 'emacs-lisp-mode "common-lisp" pygmentize-lexers) | |
(puthash 'scala-mode "scala" pygmentize-lexers) | |
(puthash 'java-mode "java" pygmentize-lexers) | |
(puthash 'ruby-mode "rb" pygmentize-lexers) | |
(puthash 'python-mode "py" pygmentize-lexers) |