Skip to content

Instantly share code, notes, and snippets.

@koheisg
koheisg / solarized-dark.css
Created July 20, 2019 17:56 — forked from nicolashery/solarized-dark.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@koheisg
koheisg / find_copy_and_paste_method.rb
Last active March 13, 2019 07:21 — forked from yalab/find_copy_and_paste_method.rb
find method that write by copy and paste.
# USAGE find_copy_and_paste_method.rb MOD_NAME
Rails.application.eager_load!
base_class = ARGV[0].constantize
def all_subclasses(klasses)
if klasses == []
klasses
else
klasses.map{|k| all_subclasses(k.subclasses) << klasses }.flatten
end
end