Skip to content

Instantly share code, notes, and snippets.

View ibtisamtauhidi's full-sized avatar

Syed Ibtisam Tauhidi ibtisamtauhidi

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
Date time,Temperature,Humidity,Load
01/01/17 00:00,20.9,66.8,7.1
01/01/17 01:00,20.8,67.69,7.2
01/01/17 02:00,20.7,68.45,7
01/01/17 03:00,20.5,70.03,8.7
01/01/17 04:00,20.2,71.45,8.9
01/01/17 05:00,20.1,72.26,8.8
01/01/17 06:00,14.1,100,8.7
01/01/17 07:00,14.1,100,9.4
01/01/17 08:00,14.1,100,10
We can't make this file beautiful and searchable because it's too large.
YEAR,MONTH,DAY,TIME,LOAD,FREQUENCY
2011,1,1,0,5549,50.06
2011,1,1,1,5419,49.745
2011,1,1,2,5294,50.155
2011,1,1,3,5266,50.15
2011,1,1,4,5232,49.95
2011,1,1,5,5413,49.725
2011,1,1,6,6023,49.72
2011,1,1,7,6411,49.625
2011,1,1,8,7019,49.66
marks = [[6,4.5,10.5,8.5,8.5,17],[9.5,5,7.5,15,15,30],[5.5,4.5,8.5,19.5,19.5,39],[10,3,17,17,17,34],[7.5,7,19,23.5,23.5,47],[2.5,3,4.5,8,8,16],[5,5.5,13.5,7,7,14],[9.5,5,16.5,18.5,18.5,37],[1.5,1,4.5,12,12,24],[9.5,7,19,24,24,48],[5,2,6.5,13,13,26],[6.5,2,5.5,14.5,14.5,29],[9,5,9,22,22,44],[5,7,9,20,20,40],[5.5,4,4.5,11.5,11.5,23],[5,5,10.5,8.5,8.5,17],[0,3,7,11.5,11.5,23],[9.5,3,12.5,14.5,14.5,29],[10,6.5,8.5,13.5,13.5,27],[6.5,3.5,14.5,21.5,21.5,43],[10,7,14.5,19,19,8],[8,7,19,18,18,36],[2,2,8,15.5,15.5,31],[8.5,7,19.5,23,23,46],[9.5,5,14.5,24,24,48],[1,2,6.5,5,5,10],[7,7,14.5,18.5,18.5,37],[2,0,7.5,15.5,15.5,31],[5.5,0,13.5,17.5,17.5,35],[4,1,6.5,10.5,10.5,21],[4,0,4.5,11.5,11.5,23],[5,6,16,16,16,32],[2,5,12.5,11.5,11.5,23],[5,4.5,7,14,14,28],[4.5,4,5.5,10.5,10.5,21],[2.5,5,5.5,11,11,22],[3,5,11.5,12,12,24],[3,0,9.5,7.5,7.5,15],[5,2,6.5,16.5,16.5,33],[7.5,5,17,10,10,20],[5,6,11,12,12,24],[5,1,5.5,14.5,14.5,29],[4,5,5.5,1,18,36],[7,3,7.5,11,11,22],[9,2,11.5,8,8,16],[8,2,4.5,14,14,28],[4.5,7,8.5,13.5,13.5,27
@ibtisamtauhidi
ibtisamtauhidi / SolarSystemSimulator
Last active August 9, 2017 08:17
A simple solar system simulator using Processing
/*
The Solar System Simulator - I
ComputeRaptor.com
Syed I. Tauhidi
*/
import java.util.Date;
// Eccentricity, aphelion (semi-major axis) and inclination, along with
// the radius of planets are stored in the following array
import sys
import serial
import time
if (len(sys.argv) < 1):
print "Usage: readGPIO.py <PORT>"
sys.exit(0)
else:
portName = sys.argv[1];
serPort = serial.Serial(portName, 19200, timeout=1)
@ibtisamtauhidi
ibtisamtauhidi / ADS_ROI_histogram
Last active August 29, 2015 14:18
ADS ROI Extraction
import sys
import cv2
from Tkinter import *
def callback(event):
sys.exit(0)
def validateArg():
if len(sys.argv) < 3 :
print "Argument Error"