| OLD | NEW |
| 1 <script> | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 2 import "dart:math"; | 5 import "dart:math"; |
| 3 | 6 |
| 4 // Snapshot from http://www.nasdaq.com/screening/company-list.aspx | 7 // Snapshot from http://www.nasdaq.com/screening/company-list.aspx |
| 5 // Fetched 2/23/2014. | 8 // Fetched 2/23/2014. |
| 6 // "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary
Quote", | 9 // "Symbol","Name","LastSale","MarketCap","IPOyear","Sector","industry","Summary
Quote", |
| 7 final List<List<String>> _kCompanyList = [ | 10 final List<List<String>> _kCompanyList = [ |
| 8 ["TFSC","1347 Capital Corp.","9.43","\$56.09M","2014","Finance","Business Serv
ices","http://www.nasdaq.com/symbol/tfsc"], | 11 ["TFSC","1347 Capital Corp.","9.43","\$56.09M","2014","Finance","Business Serv
ices","http://www.nasdaq.com/symbol/tfsc"], |
| 9 ["TFSCR","1347 Capital Corp.","0.37","n/a","2014","Finance","Business Services
","http://www.nasdaq.com/symbol/tfscr"], | 12 ["TFSCR","1347 Capital Corp.","0.37","n/a","2014","Finance","Business Services
","http://www.nasdaq.com/symbol/tfscr"], |
| 10 ["TFSCU","1347 Capital Corp.","9.97","\$41.67M","2014","n/a","n/a","http://www
.nasdaq.com/symbol/tfscu"], | 13 ["TFSCU","1347 Capital Corp.","9.97","\$41.67M","2014","n/a","n/a","http://www
.nasdaq.com/symbol/tfscu"], |
| 11 ["TFSCW","1347 Capital Corp.","0.2","n/a","2014","Finance","Business Services"
,"http://www.nasdaq.com/symbol/tfscw"], | 14 ["TFSCW","1347 Capital Corp.","0.2","n/a","2014","Finance","Business Services"
,"http://www.nasdaq.com/symbol/tfscw"], |
| (...skipping 2994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3006 Stock lookupBySymbol(String symbol) { | 3009 Stock lookupBySymbol(String symbol) { |
| 3007 this.stocks.forEach((stock) { | 3010 this.stocks.forEach((stock) { |
| 3008 if (stock.symbol == symbol) | 3011 if (stock.symbol == symbol) |
| 3009 return stock; | 3012 return stock; |
| 3010 }); | 3013 }); |
| 3011 return null; | 3014 return null; |
| 3012 } | 3015 } |
| 3013 } | 3016 } |
| 3014 | 3017 |
| 3015 final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList); | 3018 final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList); |
| 3016 | |
| 3017 </script> | |
| OLD | NEW |