Skip to content

Instantly share code, notes, and snippets.

View karimkhanp's full-sized avatar

Karimkhan karimkhanp

View GitHub Profile
Name,Type,AWD,RWD,Retail Price,Dealer Cost,Engine Size (l),Cyl,Horsepower(HP),City Miles Per Gallon,Highway Miles Per Gallon,Weight,Wheel Base,Len,Width
Acura 3.5 RL 4dr,Sedan,0,0,43755,39014,3.5,6,225,18,24,3880,115,197,72
Acura 3.5 RL w/Navigation 4dr,Sedan,0,0,46100,41100,3.5,6,225,18,24,3893,115,197,72
Acura MDX,SUV,1,0,36945,33337,3.5,6,265,17,23,4451,106,189,77
Acura NSX coupe 2dr manual S,Sports Car,0,1,89765,79978,3.2,6,290,17,24,3153,100,174,71
Acura RSX Type S 2dr,Sedan,0,0,23820,21761,2,4,200,24,31,2778,101,172,68
Acura TL 4dr,Sedan,0,0,33195,30299,3.2,6,270,20,28,3575,108,186,72
Acura TSX 4dr,Sedan,0,0,26990,24647,2.4,4,200,22,29,3230,105,183,69
Audi A4 1.8T 4dr,Sedan,0,0,25940,23508,1.8,4,170,22,31,3252,104,179,70
Audi A4 3.0 4dr,Sedan,0,0,31840,28846,3,0,220,20,28,3462,104,179,70
@karimkhanp
karimkhanp / Blockchain
Created November 18, 2020 07:26
Resource and brief knowledge on Blockchain
Hyperledger Fabric
So Hyperledge fabric is platform which provide system which provide platform to create blockchain based products.
Hyperledger Fabric is a modular blockchain framework that acts as a foundation for developing blockchain-based products, solutions, and applications using plug-and-play components that are aimed for use within private enterprises.
What is Ethereum?
Ethereum is a decentralized platform that runs smart contracts, applications that run exactly as programmed without possibility of downtime, censorship, fraud or third party interference.
Smart contract -
Smart contracts are lines of code that are stored on a blockchain and automatically execute when predetermined terms and conditions are met. At the most basic level, they are programs that run as they've been set up to run by the people who developed them
@karimkhanp
karimkhanp / bandpassfilter.py
Created November 29, 2019 13:20
Applying bandpass filter to remove unwanted frequency level
from scipy.signal import butter, lfilter
def butter_bandpass(lowcut, highcut, fs, order=5):
nyq = 0.5 * fs
low = lowcut / nyq
high = highcut / nyq
b, a = butter(order, [low, high], btype='band')
return b, a
@karimkhanp
karimkhanp / install.readme
Created April 7, 2019 05:48
Installation guide
Textract installation - https://stackoverflow.com/questions/47483263/how-to-install-textract-in-python3
@karimkhanp
karimkhanp / numerical_analysis
Created February 13, 2019 13:36
Resource and helpsful links for numerical analysis
What is dependant and independant variable - https://stats.stackexchange.com/questions/181932/how-do-you-choose-what-variables-are-dependent-independent-in-regression
Create model and see relationship among variables - https://towardsdatascience.com/create-a-model-to-predict-house-prices-using-python-d34fe8fad88f
@karimkhanp
karimkhanp / resources
Last active February 22, 2019 14:33
Resource for various usecase
Flask rest API reference document - https://www.youtube.com/watch?v=s_ht4AKnWZg&feature=youtu.be
Creating cross validation on text category data for precision recall f1 score - http://carrefax.com/articles-blog/2018/2/5/using-scikit-learn-on-your-own-text-data
flow diagram maker (Bringing workflow modeling and provenance management to scripting languages.) - http://try.yesworkflow.org/
Icons source - https://www.flaticon.com/search?word=classification
Set security group - https://www.youtube.com/watch?v=1lwaQ9NQw94
@karimkhanp
karimkhanp / polyglot library
Created January 8, 2019 15:25
Sentiment analysis and NLP resource
https://polyglot.readthedocs.io/en/latest/Sentiment.html
[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)
Objective of this Software code is to perform data classification on Consumer complain data available on https://www.consumerfinance.gov/data-research/consumer-complaints/ . There are two main classifer here
- Product classifier
- Issue classifer
Product is the type of products the consumer identified in the complaint
Issue is the type of issues the consumer identified in the complaint
@karimkhanp
karimkhanp / stopwordlist
Created December 17, 2018 06:58
List of stopwords for different languages
https://www.ranks.nl/stopwords
@karimkhanp
karimkhanp / hexatext
Last active December 14, 2018 13:11
How to handle hexacode issue in python while dealing with non english text. This problem usually occurs when you are dealing with non-english news tweets or similar sort of data.
a = u'\xd8\xad\xd9\x83\xd9\x88\xd9\x85\xd8\xa9 \xd9\x85\xd8\xad\xd9\x85\xd8\xaf \xd8\xa8\xd9\x86 \xd8\xb3\xd9\x84\xd9\x85\xd8\xa7\xd9\x86 \xd8\xa3\xd9\x86\xd9\x81\xd9\x82\xd8\xaa \xd9\x85\xd9\x84\xd9\x8a\xd8\xa7\xd8\xb1\xd8\xa7\xd8\xaa \xd8\xa7\xd9\x84\xd8\xaf\xd9\x88\xd9\x84\xd8\xa7\xd8\xb1\xd8\xa7\xd8\xaa \xd9\x84\xd8\xaf\xd8\xb9\xd9\x85 \xd8\xb3\xd9\x88\xd9\x82 \xd8\xa7\xd9\x84\xd8\xa3\xd8\xb3\xd9\x87\xd9\x85 \xd8\xa7\xd9\x84\xd9\x85\xd8\xad\xd9\x84\xd9\x8a\xd8\xa9 \xd9\x88\xd9\x85\xd9\x88\xd8\xa7\xd8\xac\xd9\x87\xd8\xa9 \xd9\x85\xd9\x88\xd8\xac\xd8\xa7\xd8\xaa \xd8\xa7\xd9\x84\xd8\xa8\xd9\x8a\xd8\xb9 \xd8\xa8\xd8\xb9\xd8\xaf \xd9\x85\xd9\x82\xd8\xaa\xd9\x84\xe2\x80\xa64'
def convert(s):
try:
return s.group(0).encode('latin1').decode('utf8')
except:
return s.group(0)
a = re.sub(r'[\x80-\xFF]+', convert, a)
print a.encode('utf8')