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
| <!-- Include Mixpanel and init before this. --> | |
| <!-- Place at the bottom of your layout (ex: app/views/layouts/application.html.erb) --> | |
| <% if content_for :mixpanel %> | |
| <%= javascript_tag(yield :mixpanel) %> | |
| <% end %> |
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
| source "https://rubygems.org" | |
| gem "rspec" | |
| gem "capybara" | |
| gem "headless" |
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 Albedo.GaugeView extends Batman.View | |
| @option 'title', 'max', 'min', 'value', 'better' | |
| @::on 'appear', -> | |
| @makeGauge() | |
| makeGauge: -> | |
| node = $(@get('node')) | |
| node.attr 'id', @get('title') |
NewerOlder