Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: sky/examples/data/stocks.dart

Issue 980953002: stocks and stocks-fn should share the stocks data (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/examples/data/cities.sky ('k') | sky/examples/scrolling/scrolling.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « sky/examples/data/cities.sky ('k') | sky/examples/scrolling/scrolling.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698