Comments (5)
also the code is
#Packages
import transcrypt
import jiphy
import os
from os import system, name
import shutil
from tqdm import tqdm
import time
import requests
#System Commands
#THEY WERE A FAILURE! PLEASE DO NOT USE! THEY WILL NOT DO ANYTHING!
#def createfile(filename, filedata, var):
# with open(filename, 'w') as var:
# var.write(filedata)
# print('Created file ' + filename + ' with ' + filedata + " and it's variable name is" + var + '.')
#def deletefile(path):
# os.remove(path)
#def deletedirectory(path):
# os.rmdir(path)
#def createdirectory(path):
# os.mkdir(path)
#def movefile(file, folder):
# shutil.move(file, folder)
#def existsfile(file):
# os.path.isfile(file)
#def existsdir(folder):
# os.path.isdir(folder)
#Variables
readme = 'README.txt'
source = "ProjectFiles.rar"
destination = "Apps"
#README Creation
if os.path.isfile(readme) == False:
with open(readme, 'w') as fp:
fp.write("! Please credit ThisIsACoolBoy (Zayan The Minecraft Coder and Gamer in YT) also note this only works in WiFi. !")
else:
pass
#Custom Commands
def cls(sleeptime):
time.sleep(sleeptime)
if name == 'nt':
_ = system('cls')
else:
_ = system('clear')
#def directory():
# if name == 'nt':
# _ = system('dir/s')
# else:
# _ = system('ls')
#Below is part of the troll.
def finished(message, author):
print(message)
print('And is made by ' + author + '.')
# This was only for the youtube video.
# Activate if you want...
#PART 1 (Fetching requests, absolutely fake.)
print('Fetching request man UuU')
with tqdm(total=100) as pbar:
for i in range(100):
time.sleep(0.01)
pbar.update(1)
print('Sending requests!')
with tqdm(total=1000,unit='KB') as pbar:
for i in range(1000):
time.sleep(0.001)
pbar.update(1)
#PART 2 (Real installation!)
chunk_size = 1024
url = "https://drive.google.com/uc?export=download&id=1MlUkK7Ce-H8hW1t6rTjgXEBzDkLY-dyS"
r = requests.get(url, stream = True)
total_size = int(r.headers['content-length'])
with open("ProjectFiles.rar", 'wb') as f:
for data in tqdm(iterable=r.iter_content(chunk_size=chunk_size), total = total_size/chunk_size, unit='KB'):
f.write(data)
#PART 3 (Download.)
print('Installation Complete! Now downloading!')
if os.path.isdir(destination) == True:
if os.path.isfile(destination + '/' + source) == True:
os.remove(destination + '/' + source)
else:
os.rmdir(destination)
os.mkdir(destination)
shutil.move(source, destination)
cls(3)
if os.path.isdir(destination) == False:
os.mkdir(destination)
shutil.move(source, destination)
if os.path.isfile(destination + '/' + source) == True:
print('Successfully downloaded!')
print('Please wait while we create the logs!')
with open('logs.txt', 'w') as log:
log.write('| Hey! | ')
log.write('Install success?: True | ')
log.write('Passed?: True | ')
log.write('Is not 3rd party?: True | ')
log.write('Is given by zayan kiddy?: True | ')
log.write('Is having README?: True | ')
log.write('Ís using windows?: True | ')
log.write('Installing repository files... | ')
log.write('Installation passed?: True | ')
log.write('Is new?: True | ')
log.write('Is well known and is from zayan kiddy?: True for zayan kiddy and false for well known. | ')
log.write('CODE: 0x817271 | ')
log.write('If you dont know what the code means. Ask zayan kiddy. | ')
else:
print('Failed!')
with open('logs.txt', 'w') as log:
log.write('| Hey! | ')
log.write('Install success?: False | ')
log.write('Passed?: False | ')
log.write('Is not 3rd party?: True | ')
log.write('Is given by zayan kiddy?: True | ')
log.write('Is having README?: True | ')
log.write('Ís using windows?: null | ')
log.write('Installing repository files... | ')
log.write('Installation passed?: False | ')
log.write('Is new?: True | ')
log.write('Is well known and is from zayan kiddy?: True for zayan kiddy and false for well known. | ')
log.write('CODE: 0x000001 | ')
log.write('If you dont know what the code means. Ask zayan kiddy. | ')
finished('Download has been finished, See the result in the folder the python file was, the folder the result is on is Apps', 'zayan kiddy')
print('Before we go... Let us do something please..')
print('hah just kidding bro.')
cls(5)
print('...')
cls(5)
print('Please wait, We will shortly bring data...')
from jiphy.
i know.. its big,
from jiphy.
You might have a unicode problem fren.
from jiphy.
15 mins w/o an answer yet.
from jiphy.
How could I fix that
from jiphy.
Related Issues (20)
- Translating JavaScript source code into other programming languages HOT 2
- wrong block groupings
- jiphy hangs on js->py on mac os x 10.11.5
- An important peice of IO missing HOT 1
- it's there any plans to write a browser version? HOT 5
- Bad conversion py->js: "sensor" -> "sens||" HOT 1
- Pulse check
- Where is the js version of jiphy?
- convert JavaScript project to python HOT 1
- loop / stack overflow
- Variable args not converted properly HOT 1
- Command not found
- lambda function support
- Issue HOT 1
- Some errors in Python-to-JavaScript translation
- single-quotes inside strings
- The effect is very bad.
- while loop has wrong bracket position (py to JS)
- rise gbk error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jiphy.