View getpw
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
#!/usr/bin/env ruby | |
# -*- ruby-mode -*- | |
base = File.expand_path "~/.password-store" | |
pass_files = `find #{base} | grep -v -e .git -e .gpg-id` | |
trimmed = pass_files. | |
split(/\n/). | |
map { |f| f.gsub "#{base}", '' }. |
View application.js
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
$("input[type='submit']").one_click_only(); | |
View date.rb
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
class Date | |
class << self | |
alias :_ruby_parse :_parse | |
def _parse(str, comp=true) | |
if I18n.locale.to_sym == :en | |
_ruby_parse str, comp | |
else | |
map = month_map I18n.locale | |
str = str.gsub /[^\s\/\d-]+/ do |month| |