Skip to content

Instantly share code, notes, and snippets.

View tmaeda's full-sized avatar

tmaeda

  • Enishi Tech Inc.
  • Sapporo, Japan
View GitHub Profile
@tmaeda
tmaeda / gist:1047385
Created June 26, 2011 07:58 — forked from clarkware/gist:1046693
View Source for Ruby
# 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
;;; 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)
#```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) }