Skip to content

Instantly share code, notes, and snippets.

rayortigas

Block or report user

Report or block rayortigas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View links-2017-01-25.md
View links-2016-05-20.md
View links-2016-05-13.md
View links-2016-05-06.md
View links-2016-04-29.md
View links-2016-04-22.md
View links-2016-04-15.md
View links-2016-04-08.md
@rayortigas
rayortigas / exporting-formatted-code-snippets-from-emacs
Created May 29, 2014
Stuff for exporting formatted code snippets from Emacs using Pygments.
View exporting-formatted-code-snippets-from-emacs
;; 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)
View gist:4490968
# 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
You can’t perform that action at this time.