This file contains hidden or 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
| # Add to the end of your ~/.zshrc or ~/.bashrc | |
| # Note: $ln -s ~/Dropbox/dotfiles/zsh/config/ ~/.zsh.d | |
| if [ -d ~/.zsh.d ]; then | |
| for i in ~/.zsh.d/*.sh; do | |
| if [ -r $i ]; then | |
| . $i | |
| fi | |
| done | |
| unset i | |
| fi |
This file contains hidden or 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
| require 'epubinfo' | |
| require 'pry' | |
| module Example | |
| class EpubInfoDemo | |
| def initialize | |
| end | |
| def extract_info(epub_file) |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| ## encoding: utf-8 | |
| require 'pry' | |
| require 'erubis' | |
| module Example | |
| # dummy data for testing | |
| class Sample | |
| def self.sample_list |
NewerOlder