Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/cartertrafton/restaurant_db.git | |
https://drive.google.com/open?id=1ALiE7yv9sXIn9qhubtj77ThHY8N7gGBF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const en = { | |
add_package: 'Add Package', | |
}; | |
const ar = { | |
add_package: 'اضافة حزمة', | |
}; |
NewerOlder