Created
          June 2, 2011 23:06 
        
      - 
      
- 
        Save snay2/1005540 to your computer and use it in GitHub Desktop. 
    TomatoFlix stats code pieces
  
        
  
    
      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
    
  
  
    
  | fired { | |
| app:netflix += 1 from 1; | |
| } | 
  
    
      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
    
  
  
    
  | rule stats { | |
| select when pageview "ktest.heroku.com" | |
| pre { | |
| msg = << | |
| Netflix: #{app:netflix_loggedin} (#{app:netflix})<br /> | |
| IMDB: #{app:imdb}<br /> | |
| Redbox: #{app:redbox}<br /> | |
| Fandango: #{app:fandango}<br /> | |
| Movies.com: #{app:movies_com}<br /> | |
| >>; | |
| } | |
| notify("TomatoFlix stats", msg) with sticky = true; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment