Skip to content

Instantly share code, notes, and snippets.

Avatar

Danysh Mushtaq DanyshMushtaq

View GitHub Profile
@DanyshMushtaq
DanyshMushtaq / MainActivity.XML
Last active Nov 9, 2015
SIMPLE CALCULATOR ANDROID ------- RELEASED IN PUBLIC INTEREST
View MainActivity.XML
<?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 Jul 9, 2019
Connect to RedShift and S3 from Python with credentials in .env
View aws-connections.py
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