Skip to content

Commit

Permalink
Initialised Repository with existing Files
Browse files Browse the repository at this point in the history
  • Loading branch information
Penguin98kStudio committed Oct 17, 2020
0 parents commit 8766e1f
Show file tree
Hide file tree
Showing 72 changed files with 511 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Background Proj/CreateBackgroundImage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import requests

path = "Result/"
name = "image"
ext = ".jpg"
outext = ".png"

for i in ('1','2'):
response = requests.post(
'https://api.remove.bg/v1.0/removebg',
files={'image_file': open(name+i+ext, 'rb')},
data={'size': 'auto'},
headers={'X-Api-Key': '8F5NZTmr74r4g3KnKu9w6pU5'},
)
if response.status_code == requests.codes.ok:
with open(path+name+i+outext, 'wb') as out:
out.write(response.content)
else:
print("Error:", response.status_code, response.text)

print("Done")
Binary file added Background Proj/LOTM emojis/Finalized/emoji1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/emoji2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/fewh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/hmm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/hmmm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/money.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/mou.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/oh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/oo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/shock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/Finalized/shockk.png
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.
Binary file added Background Proj/LOTM emojis/Finalized/weird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image10.png
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.
Binary file added Background Proj/LOTM emojis/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Background Proj/LOTM emojis/image5.png
Binary file added Background Proj/LOTM emojis/image6.png
Binary file added Background Proj/LOTM emojis/image7.png
Binary file added Background Proj/LOTM emojis/image8.png
Binary file added Background Proj/LOTM emojis/image9.png
Binary file added Background Proj/Result/image1.png
Binary file added Background Proj/image1.jpg
Binary file added Background Proj/image2.jpg
Binary file added Background Proj/test.jpg
17 changes: 17 additions & 0 deletions Python Code/Chess Plan.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ok so

king possible check
check up nd down left right till u encounter oppponent rook or queen, check if not end of board or another piece

check 2 up down left right then 90 degree turns for oppponent knighs

check diagnol till u encounter oppponent bishop or queen, check if not end of board or another piece

check if oppponent any pawn in first diagnol

pawn
if at state 0 then pawn 1 or 2
else pawn 1
if oopponenet at upp right up left then pawn move

for each move at any possible place check presence of own piece
Binary file added Python Code/__pycache__/turtle.cpython-36.pyc
Binary file not shown.
Binary file added Python Code/__pycache__/turtle.cpython-38.pyc
Binary file not shown.
12 changes: 12 additions & 0 deletions Python Code/dectobin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
def decimaltobinary(number):
half = number
power = 1
ans = 0

while half > 0:
ans += (half%2) * power
power *= 10
half//=2
return ans

print(decimaltobinary(12))
10 changes: 10 additions & 0 deletions Python Code/filettype.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import filetype
while True:
val = input("enter:")
kind = filetype.guess(val)
if kind is None:
print('Cannot guess file type!')
break
else:
print('File extension: %s' % kind.extension)
print('File MIME type: %s' % kind.mime)
14 changes: 14 additions & 0 deletions Python Code/idk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
def find(number):
dec = 3
valueset = [(int('1' * x) % number) for x in range(1, number + 1)]
try:
print('1' * (valueset.index(0) + 1))
except:
for remainder in valueset:
indices = [i for i, x in enumerate(valueset) if x == remainder]
if len(indices) >= 2:
print(int('1' * (indices[1] + 1)) - int('1' * (indices[0] + 1)))
break


find(132)
26 changes: 26 additions & 0 deletions Python Code/kivytest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.button import Button
from functools import partial

class KivyButton(App):

def disable(self, instance, *args):

instance.disabled = True

def update(self, instance, *args):

instance.text = "I am Disabled!"

def build(self):

mybtn = Button(text="Click me to disable",pos=(300,350), size_hint = (.25, .18))

mybtn.bind(on_press=partial(self.disable, mybtn))

mybtn.bind(on_press=partial(self.update, mybtn))

return mybtn

KivyButton().run()
22 changes: 22 additions & 0 deletions Python Code/lol (2).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
marks = [["maths",10],["english",70],["anlsaf",-1],["economics",90],["physics",65],["Urdu",102]]
for sub in marks:
subject = sub[-1]
if subject >100:
if sub[0] == "Urdu" and subject<110:
print("Bonus marks for handwriting")
else:
print("error")
elif subject>90:
print("A+")
elif subject >= 80:
print("A")
elif subject >= 70:
print("B")
elif subject >= 60:
print("C")
elif subject >= 50:
print("D")
elif subject < 50 and subject >= 0:
print("F, koi sharam kar!")
else:
print("Error")
14 changes: 14 additions & 0 deletions Python Code/lol.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# area variables (in square meters)
def main():
# Create lists first and second
first = [11.25, 18.0, 20.0]
second = [10.75, 9.50]

# Paste together first and second: full
full = first + second

# Sort full in desce9nding order: full_sorted
full_sorted = sorted(full,reverse:True)

# Print out full_sorted
print(full_sorted)
17 changes: 17 additions & 0 deletions Python Code/matsoup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import matplotlib.pyplot as plt
import numpy as np
mrks = ['90.12', '82.12', '81.30', '78.87', '77.60', '77.21', '76.39', '76.10', '75.80', '75.23', '74.63', '74.08', '73.82', '73.20', '72.98', '72.86', '72.45', '72.41', '71.92', '71.86', '71.72', '70.47', '70.28', '70.06', '69.10', '67.49', '67.13', '66.55', '66.52', '65.93', '65.40', '65.35', '64.98', '64.88', '64.27', '64.18', '64.05', '63.90', '63.85', '63.57', '62.28', '62.23', '61.58', '61.19', '60.87', '60.79', '56.79', '55.63', '54.36', '54.07', '53.17', '51.30', '50.87', '49.64', '49.15', '49.15', '44.20', '39.64', '38.56', '34.86', '22.02', '21.99', '20.55', '17.19', '15.93', '09.92', '02.63', '01.46', '00.00', '00.00']
ids = ['01', '47', '14', '29', '15', '22', '54', '03', '10', '26', '50', '51', '23', '02', '40', '34', '28', '37', '38', '17', '55', '72', '09', '36', '08', '53', '57', '19', '32', '21', '24', '31', '69', '39', '13', '45', '56', '25', '61', '62', '04', '42', '41', '64', '58', '70', '63', '12', '59', '43', '44', '33', '30', '52', '49', '68', '48', '74', '11', '31', '73', '46', '71', '07', '66', '65', '75', '27', '16', '20']
mrks = [ int(float(x)) for x in mrks]
#print(mrks,ids)
npmarks = np.array(mrks)
npid = np.array(ids)
dd= np.column_stack((npmarks,npid))
print(dd)

plt.xlabel("BSCS18--")
plt.ylabel("Marks")
plt.scatter(npid,npmarks)
plt.yticks([x for x in range(0,101,5)])
plt.show()

5 changes: 5 additions & 0 deletions Python Code/numpytest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import numpy as np

pos = np.array(1,2,-3,6)
pos += 1
print(pos)
10 changes: 10 additions & 0 deletions Python Code/python notes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
python -m pip install -U pip
#upgrade pip
pip3 install thing
#install thing
"""
3 changes: 3 additions & 0 deletions Python Code/shellscreeenclear.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
print("lololol")
from os import system
system("cls")
5 changes: 5 additions & 0 deletions Python Code/sofeek.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
n = int(input("Enter"))
count = 1
while n*count<250:
print(n*count)
count+=1
5 changes: 5 additions & 0 deletions Python Code/sofeel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
for index in range(5):
n =int(input("enter number"))
print(n)
print("Index:", index)
index-=1
23 changes: 23 additions & 0 deletions Python Code/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
file = open('Shrinker.txt')
data = file.read()
data =
data.split('\n')



# key1 = " \\"
# key2 = ["January","February","March","April","May","June","July","August","September","October","November","December"]

# found = 1
# def datecheck(line):
# if key1 in line and any(subkey in line for subkey in key2):
# return True
# else
# return False

# for index,line in enumerate(data):
# if datecheck(line):
# if found == 1:
# datecheck(data[index+1]):
# data[index+1] = "---Fatim----: " + data[index+1];
# list.index
2 changes: 2 additions & 0 deletions Python Code/test1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
while True:
pass
42 changes: 42 additions & 0 deletions Python Code/testing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
from random import seed
from random import randint as rand

data = []
for i in range(200):
data.append(rand(0,600))

data2 = []
for num in data:
if num not in data2 and len(data2) != 100:
data2.append(num)
data = data2
data = " ".join(map(str,data))
print(data)
filee = open("theseldata.txt","w+")
filee.write(data)
filee.close()
# from bisect import bisect_left
# data1 = open("CreateTest-input.txt","r");
# data = data1.read().split()
# data = [int(x) for x in data]
# print(data[1:20])
# seed(1)
# def bifind(a, x):
# i = bisect_left(a, x)
# if i != len(a) and a[i] == x:
# return i
# else:
# return -1

# for i in range(4000):
# val = bifind(data,rand(1,9500))
# if val != -1:
# del data[val];

# data = [str(x) for x in data]
# print(data[:120])
# data1.close()
# mystr = " "
# filee = open("thedata.txt","w+")
# filee.write(mystr.join(data))
# filee.close()
1 change: 1 addition & 0 deletions Python Code/theseldata.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
460 538 457 348 249 595 528 151 573 596 253 448 355 432 369 402 410 263 349 71 69 221 406 516 218 245 187 315 203 191 319 166 185 535 195 107 168 359 427 466 143 133 343 13 357 181 583 559 405 275 350 480 339 328 94 391 581 347 304 411 345 154 182 374 165 371 465 40 255 78 32 232 281 428 28 238 291 420 52 308 557 477 444 110 527 576 272 99 26 76 58 54 540 470 262 574 393 89 161 145
17 changes: 17 additions & 0 deletions Python Code/turtle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import turtle

board = turtle.Turtle()

board.forward(100) # move forward
board.right(90) # turn pen right 90 degrees

board.forward(100)
board.right(90)

board.forward(100)
board.right(90)

board.forward(100)
board.right(90)

turtle.done()
9 changes: 9 additions & 0 deletions Python Code/umm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
myfile =open("meh.txt",'r')
save= myfile.read()
save= save.split ()
name= str(input ("enter the sentance\n"))
name= name.split ()
for word in name:
if word not in save :
print (word,"is incorrect")
myfile.close ()
10 changes: 10 additions & 0 deletions PythonYapfStyleConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[style]
based_on_style = google
indent_width = 3
continuation_indent_width = 3
use_tabs = True
align_closing_bracket_with_visual_indent = True
join_multiple_lines = True
arithmetic_precedence_indication = True
dedent_closing_brackets = False
indent_closing_brackets = True
Binary file added Screenshot 2020-10-08 212214.png
Binary file added Screenshot 2020-10-08 215111.png
Binary file added Screenshot 2020-10-08 225429.png
Binary file added Screenshot 2020-10-08 233311.png
Binary file added Screenshot 2020-10-08 233436.png
Binary file added Screenshot 2020-10-08 233621.png
Binary file added Screenshot 2020-10-08 234103.png
Binary file added Screenshot 2020-10-11 001448.png
50 changes: 50 additions & 0 deletions Sound Stuff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from playsound import playsound as play
from time import sleep
from datetime import datetime
from win32com.client import Dispatch
from winsound import Beep as beep
from gtts import gTTS
import numpy as np

# usgirl = gTTS(text='Good morning', lang='en-us')
# usgirl.save("gm.mp3")
# # play("gm.mp3")
# ukgirl = gTTS(text='Good morning', lang='en-uk')
# ukgirl.save("gm1.mp3")
# # play("gm1.mp3")


def alert(duration=30, beepfreq=400, beeptime=600, beepgap=300):
"""Duration in secs, beeptime and gap in ms, The Freq is in Hz"""
for i in range(0, duration * 1000, beeptime + beepgap):
beep(beepfreq, beeptime)
sleep((beepgap) / 1000)
beep(900, 750)


def alarm(hour, mint, timeformat="am", duration=7):
if timeformat == "pm":
hour += 12
currtimeinstr = str(datetime.now()).split()[1].split(":")
currtime = np.array((int(currtimeinstr[0]), int(currtimeinstr[1])))
usertime = np.array((hour, mint))
diff = usertime - currtime
diff *= 60
diff[0] *= 60
sleeptill = np.sum(diff) - int(float(currtimeinstr[-1]))
if sleeptill >= 0:
sleep(sleeptill)
alert(duration, beepgap=600)


alarm(9, 57, "am")

name = "The Song"
# play(name+".mp3")

speak = Dispatch("SAPI.SpVoice")
# for i in range(10):
# sleep(1/10)
# speak.Speak("Sarah Go Sleep!")

# print('\a') # for a windows alert sound
12 changes: 12 additions & 0 deletions l.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from numba import njit
from tqdm import trange


@njit
def func():
for i in range(1000_000):
pass


for i in trange(10000):
func()
Loading

0 comments on commit 8766e1f

Please sign in to comment.