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 | |
<div id="widget-menu"> | |
<div id="wizard-step-zero" class="front create-widget-widget add-widget widget beta" rel="new-agent"><a id="add-widget" href="#" data-action="add-widget" style="display: block; ">+</a></div> | |
<div class="back create-widget-widget widget" id="wizard-step-one" style="display:none;"> | |
<span class="options beta"><a class="button" data-action="destroy" title="Entfernen"><span>Entfernen</span></a></span> | |
<div class="category-container"> | |
<div class="category icon" id="cww-analytics" title="Analytics"></div> | |
<div class="category icon" id="cww-intelligence" title="Intelligence"></div> | |
<div class="category icon" id="cww-custom" title="Custom"></div> |
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
class Fixnum | |
def factorial | |
self > 1 ? (self * (self - 1).factorial) : 1 | |
end | |
end | |
puts 5.factorial |
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
ActionView::Helpers::TextHelper::AUTO_LINK_RE = %r{ | |
( # leading text | |
<\w+.*?>| # leading HTML tag, or | |
[^=!:'"/]| # leading punctuation, or | |
^ # beginning of line | |
) | |
( | |
(?:https?://)| # protocol spec, or | |
(?:www\.)| # www.* | |
) |
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
#content div.errorExplanation { | |
background:none repeat scroll 0 0 #FBDDDD; | |
float:left; | |
margin:0 0 10px; | |
padding:10px 0; | |
width:100%; | |
} | |
#content div.errorExplanation h2 { | |
color:#B24040; | |
font-size:15px; |