This file contains hidden or 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 'ap' | |
| require 'mail' | |
| # String monkeypatch | |
| # This is one of many possible "encoding problem" solutions. It's actually an intractable problem | |
| # but you'd have to read "Gödel, Escher, Bach" to understand why... | |
| class String | |
| def clean_utf8 | |
| # self.force_encoding("UTF-8").encode("UTF-16BE", :invalid=>:replace, :replace=>"?").encode("UTF-8") | |
| unpack('C*').pack('U*') if !valid_encoding? |
This file contains hidden or 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
| ############################ | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ### CDOLLA CDOLLA CDOLLA ### | |
| ############################ | |
| ### | |
| ### |
This file contains hidden or 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
| brew install caskroom/cask/brew-cask | |
| brew cask install atom | |
| apm install linter # Base linter | |
| apm install linter-ruby | |
| apm install linter-scss-lint | |
| apm install linter-coffeelint | |
| apm install linter-rubocop | |
| apm install linter-haml |
This file contains hidden or 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 bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p374.tar.gz | |
| tar -xvzf ruby-1.9.3-p374.tar.gz | |
| cd ruby-1.9.3-p374/ | |
| ./configure --prefix=/usr/local | |
| make | |
| make install |