Skip to content

Instantly share code, notes, and snippets.

View SiddheshKhedekar's full-sized avatar
🎯
Focusing

Siddhesh Khedekar SiddheshKhedekar

🎯
Focusing
View GitHub Profile
@SiddheshKhedekar
SiddheshKhedekar / normalize.min.css
Created June 26, 2017 03:50 — forked from demun/normalize.min.css
normalize.min.css
/*! 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}
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
@SiddheshKhedekar
SiddheshKhedekar / gist:d1816aba47dbc335819e43d4b820ee24
Created January 19, 2017 09:49 — forked from chenghan/gist:7456549
Instructor code that was shown on screen
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
@SiddheshKhedekar
SiddheshKhedekar / MainActivity.java
Created September 27, 2016 12:25 — forked from udacityandroid/MainActivity.java
Android for Beginners : Cookies Starting Code
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
@SiddheshKhedekar
SiddheshKhedekar / ImageView.java
Created September 27, 2016 12:17 — forked from udacityandroid/ImageView.java
Android for Beginners : Simplified ImageView class
/**
* 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;
@SiddheshKhedekar
SiddheshKhedekar / TextView.java
Created September 27, 2016 12:13 — forked from udacityandroid/TextView.java
Android for Beginners : Simplified TextView class
/**
* Displays text to the user.
*/
public class TextView extends View {
// String value
private String mText;
// Text color of the text
private int mTextColor;