Skip to content

Instantly share code, notes, and snippets.


Salman Shah salman-bhai

Block or report user

Report or block salman-bhai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
salman-bhai / messages.po
Created Mar 21, 2018
Message Translation file for Internet Archive i18n Translations
View messages.po
# Translations template for Open Library.
# Copyright (C) 2009 Internet Archive
# This file is distributed under the same license as the Open Library
# project.
msgid ""
msgstr ""
"Project-Id-Version: Open Library VERSION\n"
salman-bhai /
Created Dec 2, 2017
K Means implementation in Python on Image clustering
#!/usr/bin/env python
import numpy as np
from PIL import Image
import random
class kmeans():
"""Cluster pixels by k means algorithm"""
def __init__(self, filepath, k = 10):
self.img =
salman-bhai /
Created Nov 4, 2017
Linear Regression Model to plot graphs for Linear Regression Models
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.linear_model import LinearRegression
df = pd.read_csv('infant-mortality-rate.csv')
X = df['Year'].values[:,np.newaxis]
y = df['Mortality'].values
salman-bhai / hospital_er_values.sql
Created Oct 11, 2017
This script enters values into all of the tables that are formed
View hospital_er_values.sql
insert into Medicine values(1,'Crocin','Dettol','2015-3-23','2017-7-8',50,1,'08:00:00','2015-3-25',100),(0,'Disprin','Cinthol','2016-8-19','2018-2-24',45,2,'09:06:00','2016-6-25',70),(0,'Chavan','Dabur','2013-9-24','2016-6-7',80,3,'10:09:00','2014-9-7',120);
insert into Patient values(1,'Salman',19,'M','Andheri,Mumbai','1996-7-8','9827532990','03:00:00','2017-4-5',1,'2012-8-9','09:00:00',1,1,1,'2012-3-4',1,'2014-8-9','07:00:00'),(0,'Ahmed',20,'F','231 Anand Vihar,Mumbai','1997-7-8','9827832990','03:05:00','2019-4-5',2,'2017-8-9','09:09:00',2,2,2,'2014-3-4',2,'2018-8-9','10:00:00'),(0,'Pratyush',89,'M','29 Jokay Vihar,Mangalore','1996-9-8','9827532790','07:00:00','2017-4-5',3,'2012-12-9','11:00:00',3,3,3,'2020-3-4',3,'2023-8-9','07:50:00');
insert into Room values(1,'MTD101','single',1000,'09:08:00','2014-6-7',1),(0,'MTD103','double',1500,'10:08:00','2014-9-7',2),(0,'MTD102','single',1000,'10:38:00','2014-9-10',3);
insert into Department values(1,'IT','Cancer'),(0,'ECE','Brain'),(0,'CSE','Heart45');
salman-bhai / hospital_er_assign.sql
Created Oct 11, 2017
THIS Gist creates tables for the Hospital Diagram
View hospital_er_assign.sql
create table Medicine(
medicine_id int auto_increment primary key not null,
medicine_name varchar(10) not null,
company char(10) not null,
m_date Date not null,
e_date date not null,
price int not null);
create table Patient(
patient_id int auto_increment primary key not null,
You can’t perform that action at this time.