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
require 'syntax_tree' | |
class RSpecEnvironment | |
def initialize | |
@contexts = [] | |
@results = [] | |
end | |
def klass(k) | |
@contexts << k |
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
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
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
# Simple script to fetch IMAP data from iCloud | |
# Set ICLOUD_EMAIL and ICLOUD_PASSWORD to environment variables | |
require 'net/imap' | |
require 'active_support' | |
imap = Net::IMAP.new('imap.mail.me.com', 993, true) | |
imap.login(ENV['ICLOUD_EMAIL'], ENV['ICLOUD_PASSWORD']) | |
imap.select 'INBOX' |
OlderNewer