Skip to content

Instantly share code, notes, and snippets.

@anasAlsalol
anasAlsalol / seconddsarabicclassification.ipynb
Last active June 6, 2020 07:47
SecondDSArabicClassification.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anasAlsalol
anasAlsalol / firstdsarabicclassification.ipynb
Last active June 6, 2020 07:47
FirstDSArabicClassification.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anasAlsalol
anasAlsalol / r-cnn.ipynb
Last active May 30, 2020 18:17
R-CNN.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
https://github.com/cartertrafton/restaurant_db.git
https://drive.google.com/open?id=1ALiE7yv9sXIn9qhubtj77ThHY8N7gGBF
# import numpy
# numpy.arange(1,29)
seat = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28]
reserved_seat = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
def count_available_seat():
name = input("Enter file ")
handle = open("sample.txt")
counts = dict()
for line in handle:
words = line.split()
for word in words:
counts[word] = counts.get(word , 0) + 1
print((v,k) for k,v in counts.items())
import math
AbnormalECG = open('AbnormalECG.txt').read().split()
ReferenceECG = open('ReferenceECG.txt').read().split()
sum = 0
for i in range(len(AbnormalECG)):
sum = sum + float(AbnormalECG[i]) * float(ReferenceECG[i])
ex = 0
# check Reservation - recive id - read from file - if ok change other reject
# 1- init the empty file
# 2- diplay the menu
# 3- while not 5 list .
# python tcp client A
import socket
import pickle
import numpy
const login = (email, password) => api.post('login', { email, password });
const packagePhoto = token => settingAPI.post(`package_photo?token=${token}`);
const emailNews = token => settingAPI.get(`email_news?token=${token}`);
const contentPhoto = token => settingAPI.post('content_photo/', { token });
const detailedPhoto = token => settingAPI.post('detailed_photo', { token });
const otherInstruction = token =>
settingAPI.post('other_instruction?other_instruction=000', { token });
const getexpectedPackage = token => api.get(`expected_package?token=${token}`);
const getpackagesWarehouse = (token, status) =>
api.get(`packages?token=${token}&status=${status}`);
const en = {
add_package: 'Add Package',
};
const ar = {
add_package: 'اضافة حزمة',
};