A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
module ApplicationHelper | |
# pretty page titles | |
# yield_for(:title, 'default text goes here') in layout | |
# content_for(:title, 'some text') in view | |
def yield_for(content_sym, default) | |
output = content_for(content_sym) | |
output = default if output.blank? | |
output | |
end | |
end |
Hide Application from Dock: | |
defaults write /Applications/Application.app/Contents/Info LSUIElement 1 | |
Show Application in Dock: | |
defaults write /Applications/Application.app/Contents/Info LSUIElement 0 | |
ashes://addOpenURL?title=Create%20Task%20in%20Things&url=things%3Aadd%3Ftitle%3D%5B%5B%5Btitle%5D%5D%5D%26notes%3D%5B%5B%5Bpost%5D%5D%5D |
class NoWWW | |
STARTS_WITH_WWW = /^www\./i | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
if env['HTTP_HOST'] =~ STARTS_WITH_WWW |
require 'csv' | |
require 'nokogiri' | |
filename = "timeentries" | |
doc = File.open("#{filename}.xml") { |f| Nokogiri::XML(f) } | |
entries = doc.css('time-entry') | |
CSV.open("#{filename}.csv", "wb") do |csv| |
(* | |
SCRIPT NAME: Copy EN Note Link (Classic) | |
DATE: Sat, Jan 23, 2016 VER: 2.1.1 | |
PURPOSE: | |
• Get Classic link of selected Evernote Note | |
• Copy to Mac Clipboard as RTF (Rich Text Format) so that you can | |
paste to most apps as a click-able link | |
• Text is EN Note Title |