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
# Toss this in your ~/.irbrc file for a convenient way | |
# to peruse Ruby source code in Emacs.app. This | |
# only works in Ruby 1.9! | |
# | |
# Use it in irb like so: | |
# | |
# >> require 'active_record' | |
# >> ActiveRecord::Base.source_for_method(:create) | |
class Object |
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
;;; Commentary | |
;; Select and activate google chrome tabs by anything interface | |
;;; Requirements | |
;; https://github.com/mechairoi/crxel | |
;;; Usage | |
;; (require 'anything-chrome-tabs) | |
;; (crxel/start 9649) | |
;; (define-key global-map "C-t" 'anything-chrome-tabs) | |
(provide 'anything-chrome-tabs) |
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
#```ruby | |
require 'axlsx' | |
p = Axlsx::Package.new | |
wb = p.workbook | |
header = {:different_odd_ => false, :odd_header => "&L&F : &A&C&Pof&N&R&D &T"} | |
wb.add_worksheet(:name => "repeated header", :header_footer => header) do |sheet| | |
sheet.add_row %w(These Column Header Will Render On Every Printed Sheet) | |
200.times { sheet.add_row %w(1 2 3 4 5 6 7 8) } |