Skip to content

Instantly share code, notes, and snippets.

View agilecreativity's full-sized avatar
💻
(into [:having-fun-with] #{:clojure :clojurescript :emacs :devops :automation})

Burin Choomnuan agilecreativity

💻
(into [:having-fun-with] #{:clojure :clojurescript :emacs :devops :automation})
View GitHub Profile
@agilecreativity
agilecreativity / zsh-bash-custom-script.sh
Created September 12, 2013 06:19
Load custom scripts from the given directory for zsh or bash
# 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
require 'epubinfo'
require 'pry'
module Example
class EpubInfoDemo
def initialize
end
def extract_info(epub_file)
@agilecreativity
agilecreativity / erubis_demo.rb
Created June 24, 2013 05:52
Erubis example with ruby
#!/usr/bin/env ruby
## encoding: utf-8
require 'pry'
require 'erubis'
module Example
# dummy data for testing
class Sample
def self.sample_list