hello
world
| #sidebar_ads, #rightCol, #presence | |
| { | |
| display: none !important; | |
| } | |
| .profile_two_columns .right_column { | |
| float: left !important; | |
| margin-left: 30px; | |
| } | |
| .fbx #globalContainer { |
| #4606367513 { | |
| padding: 5px 10px; | |
| display: inline-block; | |
| background: rgb(30, 30, 30); | |
| background: -webkit-gradient(linear, center top, center bottom, | |
| color-stop(0.0, rgba(0,0,0, 1)), | |
| color-stop(0.05, rgba(30,30,30, 1)), | |
| color-stop(1.0, rgba(50, 50, 60, 1))); | |
| background: -moz-linear-gradient(270deg, | |
| rgba(0,0,0,1) 0%, |
| .tooltip { | |
| font: 14px Helevetica, sans-serif; | |
| line-height: 18px; | |
| position: relative; | |
| border: 2px solid #73a7f0; | |
| max-width: 200px; | |
| margin-left: 20px; | |
| padding: 5px 14px; | |
| border-radius: 4px; | |
| -webkit-border-radius: 4px; |
hello
world
| def expiring_message(msg, time) | |
| message = Thread.new { | |
| time.downto(0) do |t| | |
| # You can use some code to get terminal width here instead of the 15 spaces I use | |
| # however that usually isn't terribly portable. | |
| printf "#{msg}#{' ' * 15}\r", t | |
| sleep 1 | |
| end | |
| puts | |
| } |
| # Entity | |
| # ====== | |
| # Entity is the base class of the Scene-Graph renderer and represents | |
| # a single object. | |
| class Entity | |
| # When `perform_caching` is set to `yes` the renderer will cache the | |
| # result as an image, unless `is_cached` is set to `no`. | |
| perform_caching: no | |
| is_cached: false | |
| # `parent` is a reference to the entity this class is a child to. |
This gist illustrates how you would add Google Analytics tracking into your Rails mailers. Add the tracking_interceptor.rb into your path and enable it for your mailers with:
register_interceptor TrackingInterceptorThis algorithm when passed a DOM node will find a very short selector for that element.
(but not necessarily found elsewhere)