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
| .wrapper:hover > div > label{ | |
| background-position:left bottom; | |
| } | |
| label{ | |
| background:url('http://img833.imageshack.us/img833/5959/stard.png') no-repeat left bottom; | |
| float:right; | |
| line-height:20px; | |
| padding-left:20px; | |
| height:15px; | |
| } |
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
| # 100.should be_multiple_of(10) | |
| #rspec | |
| Rspec::Matchers.define :be_multiple_of do |multiple| | |
| match do |number| | |
| number % multiple == 0 | |
| end | |
| failure_message_for_should do |number| | |
| "Expected #{number} to be multiple of #{multiple}" |
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
| mojo |
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
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential git-core curl libssl-dev \ | |
| libreadline6 libreadline6-dev \ | |
| zlib1g zlib1g-dev \ | |
| libmysqlclient-dev \ | |
| libcurl4-openssl-dev \ | |
| libxslt-dev libxml2-dev |
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
| HTML_TAG_REPLACEMENTS = { | |
| 'br' => "\n", | |
| } | |
| HTML_QUOTE_REPLACEMENTS = { | |
| 'quot' => '"', | |
| 'amp' => '&', | |
| } | |
| def strip_html(str, tag = HTML_TAG_REPLACEMENTS, quot = HTML_QUOTE_REPLACEMENTS) | |
| str.gsub %r{ |
NewerOlder