Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # .irbrc | |
| if defined?(Rails) && Rails.production? | |
| conf = IRB.conf[:PROMPT][IRB.conf[:PROMPT_MODE]] | |
| red = "\033[0;31m" | |
| reset = "\033[0m" | |
| [:PROMPT_S, :PROMPT_C].each do |p| | |
| conf[p].gsub!(/^(.*)$/, "#{red}\\1#{reset}") | |
| end | |
| conf[:PROMPT_I] = "#{red}%N(%m):%03n:%i (PRODUCTION) > #{reset}" | |
| end |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| {namespace examples.simple} | |
| /** | |
| * Greets a person using "Hello" by default. | |
| * @param name The name of the person. | |
| * @param? greetingWord Optional greeting word to use instead of "Hello". | |
| */ | |
| {template .hello} | |
| {if not $greetingWord} | |
| Hello {$name}! |
| de: | |
| will_paginate: | |
| previous_label: "← zurück" | |
| next_label: "weiter →" | |
| page_gap: "…" | |
| page_entries_info: | |
| single_page: | |
| zero: "Keine %{model} gefunden" | |
| one: "Zeige 1 %{model}" |
| class StatusBarView < NSView | |
| attr_reader :progressIndicator, :statusBarItem | |
| def initWithStatusBarItem(item) | |
| bar = item.statusBar | |
| if initWithFrame([[0,0], [bar.thickness, bar.thickness]]) | |
| @statusBarItem = item | |
| @highlight = false | |
| origin, size = frame.origin, frame.size |