Skip to content

Instantly share code, notes, and snippets.

View Tibingeo's full-sized avatar
🏠
Working from home

Tibin George Tibingeo

🏠
Working from home
View GitHub Profile
@Tibingeo
Tibingeo / flag-practice.markdown
Last active August 1, 2018 06:52
Flag practice

Flag practice

A demo for a drag and drop flag building exercise. Students will build more flags to collect into a group-built flag exercise with 9 different flags.

A Pen by Noisefactor on CodePen.

License.

{"source" : "+919612345670", "destination" : "+919612345671", "source_location": "Delhi", "destination_location": "Mumbai", "call_duration": 2.03, "roaming": "false", "call_charge":2.03 }
{ "source" : "+919612345672", "destination" : "+919612545671", "source_location": "Mumbai", "destination_location": "Varanasi", "call_duration": 3.50, "roaming": "true", "call_charge":7.00 }
{"source" : "+919612345673", "destination" : "+919612645671", "source_location": "Chennai", "destination_location": "Kerela", "call_duration": 5.39, "roaming": "false", "call_charge":5.39 }
{"source" : "+919612345674", "destination" : "+919616545671", "source_location": "Kolkata", "destination_location": "Bangalore", "call_duration": 6.01, "roaming": "false", "call_charge":6.01 }
{"source" : "+919612345675", "destination" : "+919617745671", "source_location": "Chennai", "destination_location": "Hyderabad", "call_duration": 1.55, "roaming": "true", "call_charge":3.55 }
{"source" : "+919612345676", "destination" : "+919618845671", "source_
Upload and split the file into 2 parts. Please use this - http://pinetools.com/split-files
In Python:
import pandas as pd
data1 = pd.read_table("/data/ratings.dat.000", sep="\:\:", header=None, engine='python')
data2 = pd.read_table("/data/ratings.dat.001", sep="\:\:", header=None, engine='python')
data = data1.append(data2)
@Tibingeo
Tibingeo / aws_sg_cleanup.py
Last active July 25, 2017 12:18 — forked from TomRyan-321/security-group-cleanup.py
Security Group Cleanup using boto3 with RDS check fixed
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name