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
| /*! normalize.css v1.0.1 | MIT License | git.io/normalize */ | |
| article,aside,details,figcaption,figure,footer,header,hgroup,nav,section,summary{display:block} | |
| audio,canvas,video{display:inline-block;*display:inline;*zoom:1} | |
| audio:not([controls]){display:none;height:0} | |
| [hidden]{display:none} | |
| html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%} | |
| html,button,input,select,textarea{font-family:sans-serif} | |
| body{margin:0} | |
| a:focus{outline:thin dotted} | |
| a:active,a:hover{outline:0} |
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
| import sys | |
| salesTotal = 0.0 | |
| oldKey = None | |
| dummy_Data=["Miami 12.34","Miami 99.07","Miami 55.07","NYC 88.97","NYC 33.56"] | |
| for line in dummy_Data: | |
| data = line.strip().split(" ") | |
| if len(data) != 2: | |
| # Something has gone wrong. Skip this line. | |
| continue |
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
| import sys | |
| salesTotal = 0 | |
| oldKey = None | |
| for line in sys.stdin: | |
| data = line.strip().split("\t") | |
| if len(data) != 2: | |
| # Something has gone wrong. Skip this line. | |
| continue |
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
| package com.example.android.cookies; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| public class MainActivity extends AppCompatActivity { | |
| @Override |
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
| /** | |
| * Displays an image, such as an icon. | |
| */ | |
| public class ImageView extends View { | |
| // Resource ID for the source image that should be displayed in the ImageView. | |
| private int mImageId; | |
| // Context of the app | |
| private Context mContext; |
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
| /** | |
| * Displays text to the user. | |
| */ | |
| public class TextView extends View { | |
| // String value | |
| private String mText; | |
| // Text color of the text | |
| private int mTextColor; |