Skip to content

Instantly share code, notes, and snippets.

View DanyshMushtaq's full-sized avatar

Danysh Mushtaq DanyshMushtaq

View GitHub Profile
@DanyshMushtaq
DanyshMushtaq / MainActivity.XML
Last active November 9, 2015 10:14
SIMPLE CALCULATOR ANDROID ------- RELEASED IN PUBLIC INTEREST
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:id='0'
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
@DanyshMushtaq
DanyshMushtaq / aws-connections.py
Last active July 9, 2019 17:05
Connect to RedShift and S3 from Python with credentials in .env
import os
from dotenv import load_dotenv, find_dotenv
import psycopg2
import pandas as pd
import boto3
class Redshift:
def __init__(self):
''' Constructor for this class. '''
# Create some members