I waited for years for a Homebrew formula for MOC. I finally found one today, but it didn't work for me. So I decided to try to compile it from source.
Here is a list of requirements, taken directly from the MOC README:
nnoremap yy "+yy | |
vnoremap y "+y | |
nnoremap p "+p | |
vnoremap p "+p | |
nnoremap P "+P | |
vnoremap P "+P |
#!/usr/bin/osascript |
#!/usr/bin/env zsh | |
if ! type prlctl &> /dev/null ; then | |
print -u 2 -- "command not found: prlctl" | |
print -u 2 -- "Parallels might not be installed" | |
return 1 | |
fi | |
if ! type fzf &> /dev/null ; then | |
print -u 2 -- "command not found: fzf" |
en: | |
activerecord: | |
errors: | |
messages: | |
array: | |
default: "has invalid values: %{invalid_values}" | |
absence: "has non-blank values: %{invalid_values}" | |
presence: "has blank values: %{invalid_values}" | |
format: "has invalid values: %{invalid_values}" | |
exclusion: "has reserved values: %{invalid_values}" |
#3366CC | |
#DC3912 | |
#FF9900 | |
#109618 | |
#990099 | |
#3B3EAC | |
#0099C6 | |
#DD4477 | |
#66AA00 | |
#B82E2E |
require "open-uri" | |
require "net/http" | |
Error = Class.new(StandardError) | |
DOWNLOAD_ERRORS = [ | |
SocketError, | |
OpenURI::HTTPError, | |
RuntimeError, | |
URI::InvalidURIError, |
import Foundation | |
extension Int { | |
func abbreviate() -> String { | |
typealias Abbrevation = (threshold: Double, divisor: Double, suffix: String) | |
let abbreviations: [Abbrevation] = [ | |
(0, 1, ""), | |
(1000.0, 1000.0, "K"), | |
(100_000.0, 1_000_000.0, "M"), |
# frozen_string_literal: true | |
class ExampleClass | |
PI = 3.14159265359 | |
end |