From 98ac1633f70b2195ffd2c4c7f0d68df6f5716cdd Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 19 May 2022 07:44:31 +0530
Subject: [PATCH 01/66] Create python-pretty-print-json.py
---
.../python-pretty-print-json.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 python-pretty-print-json/python-pretty-print-json.py
diff --git a/python-pretty-print-json/python-pretty-print-json.py b/python-pretty-print-json/python-pretty-print-json.py
new file mode 100644
index 00000000..0d2aebb6
--- /dev/null
+++ b/python-pretty-print-json/python-pretty-print-json.py
@@ -0,0 +1,18 @@
+import json
+
+#jsn = '{"one":"AAA","two":["BBB","CCC"],"three":{"four":"DDD","five":["EEE","FFF"]}}'
+jsn = "{\"one\":\"AAA\",\"two\":[\"BBB\",\"CCC\"],\"three\":{\"four\":\"DDD\",\"five\":[\"EEE\",\"FFF\"]}}"
+
+parsed_json = json.loads(jsn)
+prettify_json = json.dumps(parsed_json, indent=4)
+#prettify_json = json.dumps(parsed_json, indent=4, sort_keys=True)
+
+print(prettify_json)
+
+
+with open('input.json', 'r') as inf:
+ parsed_json = json.load(inf)
+ prettify_json = json.dumps(parsed_json, indent=4)
+
+ with open('output.json', 'w') as ouf:
+ ouf.write(prettify_json)
From 4eabe0fbe84088101636462d534b22a966fff476 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 19 May 2022 07:45:02 +0530
Subject: [PATCH 02/66] Create input.json
---
python-pretty-print-json/input.json | 1 +
1 file changed, 1 insertion(+)
create mode 100644 python-pretty-print-json/input.json
diff --git a/python-pretty-print-json/input.json b/python-pretty-print-json/input.json
new file mode 100644
index 00000000..5c1a9fd7
--- /dev/null
+++ b/python-pretty-print-json/input.json
@@ -0,0 +1 @@
+{"one":"AAA","two":["BBB","CCC"],"three":{"four":"DDD","five":["EEE","FFF"]}}
From e2214a9d61d537300017c75438101053b8731be8 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 19 May 2022 07:45:20 +0530
Subject: [PATCH 03/66] Create output.json
---
python-pretty-print-json/output.json | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 python-pretty-print-json/output.json
diff --git a/python-pretty-print-json/output.json b/python-pretty-print-json/output.json
new file mode 100644
index 00000000..1a5d92b4
--- /dev/null
+++ b/python-pretty-print-json/output.json
@@ -0,0 +1,14 @@
+{
+ "one": "AAA",
+ "two": [
+ "BBB",
+ "CCC"
+ ],
+ "three": {
+ "four": "DDD",
+ "five": [
+ "EEE",
+ "FFF"
+ ]
+ }
+}
From bfa1a10318fc727b301338ab85bb48dc44ceff0f Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 19 May 2022 07:45:56 +0530
Subject: [PATCH 04/66] Create readme.rst
---
python-pretty-print-json/readme.rst | 1 +
1 file changed, 1 insertion(+)
create mode 100644 python-pretty-print-json/readme.rst
diff --git a/python-pretty-print-json/readme.rst b/python-pretty-print-json/readme.rst
new file mode 100644
index 00000000..b7528c74
--- /dev/null
+++ b/python-pretty-print-json/readme.rst
@@ -0,0 +1 @@
+Please follow the tutorial https://roytuts.com/pretty-print-json-in-python/
From 6b813c365f0d8707b5e71d96cc45f9cc4988583c Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 30 May 2022 10:37:32 +0530
Subject: [PATCH 05/66] Update csv-reader.py
---
python-csv-read/csv-reader.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-csv-read/csv-reader.py b/python-csv-read/csv-reader.py
index 443fb522..900e4fde 100644
--- a/python-csv-read/csv-reader.py
+++ b/python-csv-read/csv-reader.py
@@ -68,7 +68,7 @@
223488,FL,CLAY COUNTY,328500,328500,328500,328500,328500,348374.25,0,16425,0,0,30.102217,-81.707146,Residential,Wood,1
433512,FL,CLAY COUNTY,315000,315000,315000,315000,315000,265821.57,0,15750,0,0,30.118774,-81.704613,Residential,Wood,1"""
-f = StringIO(scsv)
+f = StringIO(string)
reader = csv.reader(f, delimiter=',')
for row in reader:
print(','.join(row))
From f8f7c87136e4c69b62cff9f28837932e53a1834f Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 30 May 2022 10:38:12 +0530
Subject: [PATCH 06/66] Update readme.rst
---
python-csv-read/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-csv-read/readme.rst b/python-csv-read/readme.rst
index 92717dbf..3a1b538c 100644
--- a/python-csv-read/readme.rst
+++ b/python-csv-read/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-read-csv-file-or-string-using-python/
+Please follow the tutorial https://roytuts.com/how-to-read-csv-file-or-string-using-python/
From 3eb311cfcd7958a207ad0a93f1b4ad7d87634163 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 11 Jul 2022 15:00:30 +0530
Subject: [PATCH 07/66] Create python-van-eck-sequence.py
---
.../python-van-eck-sequence.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 python-van-eck-sequence/python-van-eck-sequence.py
diff --git a/python-van-eck-sequence/python-van-eck-sequence.py b/python-van-eck-sequence/python-van-eck-sequence.py
new file mode 100644
index 00000000..bd1b120b
--- /dev/null
+++ b/python-van-eck-sequence/python-van-eck-sequence.py
@@ -0,0 +1,15 @@
+num_dict = {}
+next_num = 0
+sequence = ''
+
+for i in range(100):
+ if next_num in num_dict:
+ distance = i - num_dict[next_num]
+ else:
+ distance = 0
+
+ num_dict[next_num] = i
+ sequence += "%d, " % next_num
+ next_num = distance
+
+print(sequence)
From c2f8545bca1fc667ecbf74309b700385b7ac3fb3 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 11 Jul 2022 15:01:10 +0530
Subject: [PATCH 08/66] Create readme.rst
---
python-van-eck-sequence/readme.rst | 1 +
1 file changed, 1 insertion(+)
create mode 100644 python-van-eck-sequence/readme.rst
diff --git a/python-van-eck-sequence/readme.rst b/python-van-eck-sequence/readme.rst
new file mode 100644
index 00000000..88feccd4
--- /dev/null
+++ b/python-van-eck-sequence/readme.rst
@@ -0,0 +1 @@
+Please follow the tutorial https://roytuts.com/van-eck-sequence-using-python/
From beed70b69fd884fda0e73aa06837d5fbd06d426a Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 15 Jul 2022 09:46:02 +0530
Subject: [PATCH 09/66] Create python-josephus.py
---
python-josephus/python-josephus.py | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 python-josephus/python-josephus.py
diff --git a/python-josephus/python-josephus.py b/python-josephus/python-josephus.py
new file mode 100644
index 00000000..c935af2e
--- /dev/null
+++ b/python-josephus/python-josephus.py
@@ -0,0 +1,22 @@
+def josephus(num_people, rem_pos):
+ temp_pos = rem_pos - 1
+ people = []
+
+ for i in range(num_people):
+ people.append(i+1)
+
+ iteration = num_people - 1
+
+ while iteration > 0:
+ people.pop(temp_pos)
+ temp_pos += rem_pos - 1
+ if(temp_pos > len(people) - 1):
+ temp_pos = temp_pos % len(people)
+ iteration = iteration - 1
+
+ return people[0]
+
+print('Winner is %d' % josephus(5, 3))
+print('Winner is %d' % josephus(10, 3))
+print('Winner is %d' % josephus(5, 2))
+print('Winner is %d' % josephus(7, 3))
From add05c0fc6c12d9154069ca8ad19754e66d69c05 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 15 Jul 2022 09:46:38 +0530
Subject: [PATCH 10/66] Create readme.rst
---
python-josephus/readme.rst | 1 +
1 file changed, 1 insertion(+)
create mode 100644 python-josephus/readme.rst
diff --git a/python-josephus/readme.rst b/python-josephus/readme.rst
new file mode 100644
index 00000000..96e51323
--- /dev/null
+++ b/python-josephus/readme.rst
@@ -0,0 +1 @@
+Please follow the tutorial https://roytuts.com/solving-josephus-problem-using-python/
From 3267e40a65be99649a240bd05a6f6c432c2a1720 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 2 Mar 2023 17:42:09 +0530
Subject: [PATCH 11/66] Update readme.rst
---
python-flask-rest-api-multiple-files-upload/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-rest-api-multiple-files-upload/readme.rst b/python-flask-rest-api-multiple-files-upload/readme.rst
index a132e601..bdd70013 100644
--- a/python-flask-rest-api-multiple-files-upload/readme.rst
+++ b/python-flask-rest-api-multiple-files-upload/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/python-flask-rest-api-multiple-files-upload/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/python-flask-rest-api-multiple-files-upload/
From 07c5979f1deaab4e8e292fabf6345c854c68b6e2 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 2 Mar 2023 17:46:12 +0530
Subject: [PATCH 12/66] Delete python-flask-rest-api-multiple-files-upload
directory
---
.../app.py | 8 ----
.../main.py | 48 -------------------
.../readme.rst | 1 -
3 files changed, 57 deletions(-)
delete mode 100644 python-flask-rest-api-multiple-files-upload/app.py
delete mode 100644 python-flask-rest-api-multiple-files-upload/main.py
delete mode 100644 python-flask-rest-api-multiple-files-upload/readme.rst
diff --git a/python-flask-rest-api-multiple-files-upload/app.py b/python-flask-rest-api-multiple-files-upload/app.py
deleted file mode 100644
index c46c27d8..00000000
--- a/python-flask-rest-api-multiple-files-upload/app.py
+++ /dev/null
@@ -1,8 +0,0 @@
-from flask import Flask
-
-UPLOAD_FOLDER = 'C:/uploads'
-
-app = Flask(__name__)
-#app.secret_key = "secret key"
-app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
-app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
\ No newline at end of file
diff --git a/python-flask-rest-api-multiple-files-upload/main.py b/python-flask-rest-api-multiple-files-upload/main.py
deleted file mode 100644
index da6a5d98..00000000
--- a/python-flask-rest-api-multiple-files-upload/main.py
+++ /dev/null
@@ -1,48 +0,0 @@
-import os
-import urllib.request
-from app import app
-from flask import Flask, request, redirect, jsonify
-from werkzeug.utils import secure_filename
-
-ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
-
-def allowed_file(filename):
- return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
-
-@app.route('/multiple-files-upload', methods=['POST'])
-def upload_file():
- # check if the post request has the file part
- if 'files[]' not in request.files:
- resp = jsonify({'message' : 'No file part in the request'})
- resp.status_code = 400
- return resp
-
- files = request.files.getlist('files[]')
-
- errors = {}
- success = False
-
- for file in files:
- if file and allowed_file(file.filename):
- filename = secure_filename(file.filename)
- file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
- success = True
- else:
- errors[file.filename] = 'File type is not allowed'
-
- if success and errors:
- errors['message'] = 'File(s) successfully uploaded'
- resp = jsonify(errors)
- resp.status_code = 206
- return resp
- if success:
- resp = jsonify({'message' : 'Files successfully uploaded'})
- resp.status_code = 201
- return resp
- else:
- resp = jsonify(errors)
- resp.status_code = 400
- return resp
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python-flask-rest-api-multiple-files-upload/readme.rst b/python-flask-rest-api-multiple-files-upload/readme.rst
deleted file mode 100644
index bdd70013..00000000
--- a/python-flask-rest-api-multiple-files-upload/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-Please follow the tutorial https://roytuts.com/python-flask-rest-api-multiple-files-upload/
From b943cdc690e9818e3537ffb3f3f95cb1610579ff Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Wed, 13 Sep 2023 18:21:24 +0530
Subject: [PATCH 13/66] Delete google-charts directory
---
google-charts/pie-chart/app.py | 3 --
google-charts/pie-chart/main.py | 11 -----
google-charts/pie-chart/readme.rst | 1 -
.../pie-chart/templates/pie-chart.html | 47 -------------------
4 files changed, 62 deletions(-)
delete mode 100644 google-charts/pie-chart/app.py
delete mode 100644 google-charts/pie-chart/main.py
delete mode 100644 google-charts/pie-chart/readme.rst
delete mode 100644 google-charts/pie-chart/templates/pie-chart.html
diff --git a/google-charts/pie-chart/app.py b/google-charts/pie-chart/app.py
deleted file mode 100644
index d7562aac..00000000
--- a/google-charts/pie-chart/app.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from flask import Flask
-
-app = Flask(__name__)
diff --git a/google-charts/pie-chart/main.py b/google-charts/pie-chart/main.py
deleted file mode 100644
index c22a56fc..00000000
--- a/google-charts/pie-chart/main.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from app import app
-from flask import jsonify, request, render_template
-
-@app.route('/google-charts/pie-chart')
-def google_pie_chart():
- data = {'Task' : 'Hours per Day', 'Work' : 11, 'Eat' : 2, 'Commute' : 2, 'Watching TV' : 2, 'Sleeping' : 7}
- #print(data)
- return render_template('pie-chart.html', data=data)
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/google-charts/pie-chart/readme.rst b/google-charts/pie-chart/readme.rst
deleted file mode 100644
index 64cd8450..00000000
--- a/google-charts/pie-chart/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can read tutorial at https://www.roytuts.com/google-pie-chart-using-python-flask/
\ No newline at end of file
diff --git a/google-charts/pie-chart/templates/pie-chart.html b/google-charts/pie-chart/templates/pie-chart.html
deleted file mode 100644
index 636f9460..00000000
--- a/google-charts/pie-chart/templates/pie-chart.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
- Show Data on Google Pie Chart using Python Flask
-
-
-
-
-
-
Show Data on Google Pie Chart using Python Flask
-
-
-
-
-
From 25a99e001307cb9131dbb57e57fb496f93dbf6da Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 30 Oct 2023 18:35:36 +0530
Subject: [PATCH 14/66] Delete python-flask-ajax-file-upload directory
moved to https://github.com/roytuts/flask/tree/master/python-flask-ajax-file-upload
---
python-flask-ajax-file-upload/app.py | 8 ---
python-flask-ajax-file-upload/main.py | 53 ------------------
python-flask-ajax-file-upload/readme.rst | 1 -
.../templates/file-upload.html | 56 -------------------
4 files changed, 118 deletions(-)
delete mode 100644 python-flask-ajax-file-upload/app.py
delete mode 100644 python-flask-ajax-file-upload/main.py
delete mode 100644 python-flask-ajax-file-upload/readme.rst
delete mode 100644 python-flask-ajax-file-upload/templates/file-upload.html
diff --git a/python-flask-ajax-file-upload/app.py b/python-flask-ajax-file-upload/app.py
deleted file mode 100644
index b656007a..00000000
--- a/python-flask-ajax-file-upload/app.py
+++ /dev/null
@@ -1,8 +0,0 @@
-from flask import Flask
-
-UPLOAD_FOLDER = 'C:/uploads'
-
-app = Flask(__name__)
-app.secret_key = "secret key"
-app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
-app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
\ No newline at end of file
diff --git a/python-flask-ajax-file-upload/main.py b/python-flask-ajax-file-upload/main.py
deleted file mode 100644
index 7db20c19..00000000
--- a/python-flask-ajax-file-upload/main.py
+++ /dev/null
@@ -1,53 +0,0 @@
-import os
-#import magic
-import urllib.request
-from app import app
-from flask import Flask, flash, request, redirect, render_template, jsonify
-from werkzeug.utils import secure_filename
-
-ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
-
-def allowed_file(filename):
- return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
-
-@app.route('/')
-def upload_form():
- return render_template('file-upload.html')
-
-@app.route('/python-flask-files-upload', methods=['POST'])
-def upload_file():
- # check if the post request has the file part
- if 'files[]' not in request.files:
- resp = jsonify({'message' : 'No file part in the request'})
- resp.status_code = 400
- return resp
-
- files = request.files.getlist('files[]')
-
- errors = {}
- success = False
-
- for file in files:
- if file and allowed_file(file.filename):
- filename = secure_filename(file.filename)
- file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
- success = True
- else:
- errors[file.filename] = 'File type is not allowed'
-
- if success and errors:
- errors['message'] = 'File(s) successfully uploaded'
- resp = jsonify(errors)
- resp.status_code = 206
- return resp
- if success:
- resp = jsonify({'message' : 'Files successfully uploaded'})
- resp.status_code = 201
- return resp
- else:
- resp = jsonify(errors)
- resp.status_code = 400
- return resp
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python-flask-ajax-file-upload/readme.rst b/python-flask-ajax-file-upload/readme.rst
deleted file mode 100644
index 839e0a09..00000000
--- a/python-flask-ajax-file-upload/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can go through the tutorial https://www.roytuts.com/ajax-files-upload-using-python-flask-jquery/
diff --git a/python-flask-ajax-file-upload/templates/file-upload.html b/python-flask-ajax-file-upload/templates/file-upload.html
deleted file mode 100644
index 9ae3fa32..00000000
--- a/python-flask-ajax-file-upload/templates/file-upload.html
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- Python Flask File(s) Upload Example
-
-
-
-
- Python Flask File(s) Upload - Select file(s) to upload
-
-
-
-
- Upload
-
-
-
\ No newline at end of file
From 9ff72cea14276cc895379b54390cafa845754378 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 3 Nov 2023 15:30:21 +0530
Subject: [PATCH 15/66] Update main.py
---
flask-rest-mongodb/main.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flask-rest-mongodb/main.py b/flask-rest-mongodb/main.py
index e836fcb0..dfcf7c17 100644
--- a/flask-rest-mongodb/main.py
+++ b/flask-rest-mongodb/main.py
@@ -2,7 +2,7 @@
from bson.json_util import dumps
from bson.objectid import ObjectId
from flask import jsonify, flash, request
-from werkzeug import generate_password_hash, check_password_hash
+from werkzeug.security import generate_password_hash, check_password_hash
@app.route('/add', methods=['POST'])
def add_user():
@@ -15,7 +15,7 @@ def add_user():
#do not save password as a plain text
_hashed_password = generate_password_hash(_password)
# save details
- id = mongo.db.user.insert({'name': _name, 'email': _email, 'pwd': _hashed_password})
+ id = mongo.db.user.insert_one({'name': _name, 'email': _email, 'pwd': _hashed_password})
resp = jsonify('User added successfully!')
resp.status_code = 200
return resp
@@ -72,4 +72,4 @@ def not_found(error=None):
return resp
if __name__ == "__main__":
- app.run()
\ No newline at end of file
+ app.run()
From 7e0e9ca02ba4fd011ebe4d9f5c9959770d6c8cc3 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 3 Nov 2023 15:30:48 +0530
Subject: [PATCH 16/66] Update readme.rst
---
flask-rest-mongodb/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flask-rest-mongodb/readme.rst b/flask-rest-mongodb/readme.rst
index 6c0800b3..cb273896 100644
--- a/flask-rest-mongodb/readme.rst
+++ b/flask-rest-mongodb/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/python-flask-rest-api-mongodb-crud-example/
+Please follow the tutorial https://roytuts.com/flask-rest-api-mongodb-crud-example/
From df4dac38a87824f7c2d8d4e3fffc4b3bb3cd2df2 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 3 Nov 2023 15:35:15 +0530
Subject: [PATCH 17/66] Delete flask-rest-mongodb directory
moved to https://github.com/roytuts/flask/tree/master/flask-rest-mongodb
---
flask-rest-mongodb/app.py | 7 ----
flask-rest-mongodb/main.py | 75 -----------------------------------
flask-rest-mongodb/readme.rst | 1 -
3 files changed, 83 deletions(-)
delete mode 100644 flask-rest-mongodb/app.py
delete mode 100644 flask-rest-mongodb/main.py
delete mode 100644 flask-rest-mongodb/readme.rst
diff --git a/flask-rest-mongodb/app.py b/flask-rest-mongodb/app.py
deleted file mode 100644
index 6025c691..00000000
--- a/flask-rest-mongodb/app.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from flask import Flask
-from flask_pymongo import PyMongo
-
-app = Flask(__name__)
-app.secret_key = "secret key"
-app.config["MONGO_URI"] = "mongodb://localhost:27017/roytuts"
-mongo = PyMongo(app)
\ No newline at end of file
diff --git a/flask-rest-mongodb/main.py b/flask-rest-mongodb/main.py
deleted file mode 100644
index dfcf7c17..00000000
--- a/flask-rest-mongodb/main.py
+++ /dev/null
@@ -1,75 +0,0 @@
-from app import app, mongo
-from bson.json_util import dumps
-from bson.objectid import ObjectId
-from flask import jsonify, flash, request
-from werkzeug.security import generate_password_hash, check_password_hash
-
-@app.route('/add', methods=['POST'])
-def add_user():
- _json = request.json
- _name = _json['name']
- _email = _json['email']
- _password = _json['pwd']
- # validate the received values
- if _name and _email and _password and request.method == 'POST':
- #do not save password as a plain text
- _hashed_password = generate_password_hash(_password)
- # save details
- id = mongo.db.user.insert_one({'name': _name, 'email': _email, 'pwd': _hashed_password})
- resp = jsonify('User added successfully!')
- resp.status_code = 200
- return resp
- else:
- return not_found()
-
-@app.route('/users')
-def users():
- users = mongo.db.user.find()
- resp = dumps(users)
- return resp
-
-@app.route('/user/')
-def user(id):
- user = mongo.db.user.find_one({'_id': ObjectId(id)})
- resp = dumps(user)
- return resp
-
-@app.route('/update', methods=['PUT'])
-def update_user():
- _json = request.json
- _id = _json['_id']
- _name = _json['name']
- _email = _json['email']
- _password = _json['pwd']
- # validate the received values
- if _name and _email and _password and _id and request.method == 'PUT':
- #do not save password as a plain text
- _hashed_password = generate_password_hash(_password)
- # save edits
- mongo.db.user.update_one({'_id': ObjectId(_id['$oid']) if '$oid' in _id else ObjectId(_id)}, {'$set': {'name': _name, 'email': _email, 'pwd': _hashed_password}})
- resp = jsonify('User updated successfully!')
- resp.status_code = 200
- return resp
- else:
- return not_found()
-
-@app.route('/delete/', methods=['DELETE'])
-def delete_user(id):
- mongo.db.user.delete_one({'_id': ObjectId(id)})
- resp = jsonify('User deleted successfully!')
- resp.status_code = 200
- return resp
-
-@app.errorhandler(404)
-def not_found(error=None):
- message = {
- 'status': 404,
- 'message': 'Not Found: ' + request.url,
- }
- resp = jsonify(message)
- resp.status_code = 404
-
- return resp
-
-if __name__ == "__main__":
- app.run()
diff --git a/flask-rest-mongodb/readme.rst b/flask-rest-mongodb/readme.rst
deleted file mode 100644
index cb273896..00000000
--- a/flask-rest-mongodb/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-Please follow the tutorial https://roytuts.com/flask-rest-api-mongodb-crud-example/
From 9cc8fff2cf89c3a9d80262dcb463dd3613ef416d Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 9 Nov 2023 16:39:00 +0530
Subject: [PATCH 18/66] Update readme.rst
---
python-csv-to-pdf/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-csv-to-pdf/readme.rst b/python-csv-to-pdf/readme.rst
index 83827e41..1308e785 100644
--- a/python-csv-to-pdf/readme.rst
+++ b/python-csv-to-pdf/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-convert-csv-file-to-pdf-file-using-pyfpdf-in-python/
+Please follow the tutorial https://roytuts.com/how-to-convert-csv-file-to-pdf-file-using-pyfpdf-in-python/
From ccbcf6db128cf71656440ac1b309e7c1d1c554e4 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Tue, 21 Nov 2023 21:48:27 +0530
Subject: [PATCH 19/66] Update readme.rst
---
python-xml-builder/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-xml-builder/readme.rst b/python-xml-builder/readme.rst
index 113e418e..285ba4f0 100644
--- a/python-xml-builder/readme.rst
+++ b/python-xml-builder/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/building-xml-using-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/building-xml-using-python/
From 44f0f2a6757fe38b7a007fecc7cccbb191b6fb55 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Tue, 21 Nov 2023 21:49:04 +0530
Subject: [PATCH 20/66] Create bookstore2.xml
---
python-xml-builder/bookstore2.xml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 python-xml-builder/bookstore2.xml
diff --git a/python-xml-builder/bookstore2.xml b/python-xml-builder/bookstore2.xml
new file mode 100644
index 00000000..4488b187
--- /dev/null
+++ b/python-xml-builder/bookstore2.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ Joe
+ Bob
+ Trenton Literary Review Honorable Mention
+
+ 12
+
+
+ 12
+
+
+
From fa1f28a8d060907489f5e1ff3647c6a9b6716ee7 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Wed, 22 Nov 2023 14:15:47 +0530
Subject: [PATCH 21/66] Update readme.rst
---
python-xml-parser/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-xml-parser/readme.rst b/python-xml-parser/readme.rst
index afad10d6..c909d079 100644
--- a/python-xml-parser/readme.rst
+++ b/python-xml-parser/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/parsing-xml-using-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/parsing-xml-using-python/
From 8e42e05c67b735da54455d51966f4c57b0f0b734 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Wed, 22 Nov 2023 14:16:23 +0530
Subject: [PATCH 22/66] Create bookstore.xml
---
python-xml-parser/bookstore.xml | 56 +++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 python-xml-parser/bookstore.xml
diff --git a/python-xml-parser/bookstore.xml b/python-xml-parser/bookstore.xml
new file mode 100644
index 00000000..bea26204
--- /dev/null
+++ b/python-xml-parser/bookstore.xml
@@ -0,0 +1,56 @@
+
+
+
+
+ Joe
+ Bob
+ Trenton Literary Review Honorable Mention
+
+ 12
+
+
+
+ Mary
+ Bob
+ Selected Short Stories of
+ Mary
+ Bob
+
+
+
+ Britney
+ Bob
+
+ 55
+
+
+ 2.50
+
+
+
+
+ Toni
+ Bob
+ B.A.
+ Ph.D.
+ Pulitzer
+ Still in Trenton
+ Trenton Forever
+
+ 6.50
+
+ It was a dark and stormy night.
+ But then all nights in Trenton seem dark and
+ stormy to someone who has gone through what
+ I have.
+
+ Trenton
+ misery
+
+
+
+
+ Who's Who in Trenton
+ Robert Bob
+
+
From 8c44b12c47d5c445ff2ba5cf7036d5fe719ab7e3 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Wed, 10 Jan 2024 13:12:15 +0530
Subject: [PATCH 23/66] Delete python-flask-ajax-mysql-login-logout directory
Moved to the repo https://github.com/roytuts/flask/tree/master/python-flask-ajax-mysql-login-logout
---
python-flask-ajax-mysql-login-logout/app.py | 4 --
python-flask-ajax-mysql-login-logout/dao.py | 30 --------
.../db_config.py | 11 ---
python-flask-ajax-mysql-login-logout/main.py | 14 ----
.../readme.rst | 1 -
python-flask-ajax-mysql-login-logout/rest.py | 27 -------
.../static/js/auth.js | 72 -------------------
.../templates/index.html | 34 ---------
.../templates/login.html | 49 -------------
9 files changed, 242 deletions(-)
delete mode 100644 python-flask-ajax-mysql-login-logout/app.py
delete mode 100644 python-flask-ajax-mysql-login-logout/dao.py
delete mode 100644 python-flask-ajax-mysql-login-logout/db_config.py
delete mode 100644 python-flask-ajax-mysql-login-logout/main.py
delete mode 100644 python-flask-ajax-mysql-login-logout/readme.rst
delete mode 100644 python-flask-ajax-mysql-login-logout/rest.py
delete mode 100644 python-flask-ajax-mysql-login-logout/static/js/auth.js
delete mode 100644 python-flask-ajax-mysql-login-logout/templates/index.html
delete mode 100644 python-flask-ajax-mysql-login-logout/templates/login.html
diff --git a/python-flask-ajax-mysql-login-logout/app.py b/python-flask-ajax-mysql-login-logout/app.py
deleted file mode 100644
index 5e65b47b..00000000
--- a/python-flask-ajax-mysql-login-logout/app.py
+++ /dev/null
@@ -1,4 +0,0 @@
-from flask import Flask
-
-app = Flask(__name__)
-app.secret_key = "secret key"
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/dao.py b/python-flask-ajax-mysql-login-logout/dao.py
deleted file mode 100644
index 712875c6..00000000
--- a/python-flask-ajax-mysql-login-logout/dao.py
+++ /dev/null
@@ -1,30 +0,0 @@
-import pymysql
-from db_config import mysql
-from werkzeug import check_password_hash
-
-def login(email, pwd):
- conn = None;
- cursor = None;
-
- try:
- conn = mysql.connect()
- cursor = conn.cursor()
-
- sql = "SELECT email, pwd FROM user WHERE email=%s"
- sql_where = (email,)
-
- cursor.execute(sql, sql_where)
- row = cursor.fetchone()
-
- if row:
- if check_password_hash(row[1], pwd):
- return row[0]
- return None
-
- except Exception as e:
- print(e)
-
- finally:
- if cursor and conn:
- cursor.close()
- conn.close()
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/db_config.py b/python-flask-ajax-mysql-login-logout/db_config.py
deleted file mode 100644
index ba6e5ddb..00000000
--- a/python-flask-ajax-mysql-login-logout/db_config.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from app import app
-from flaskext.mysql import MySQL
-
-mysql = MySQL()
-
-# MySQL configurations
-app.config['MYSQL_DATABASE_USER'] = 'root'
-app.config['MYSQL_DATABASE_PASSWORD'] = 'root'
-app.config['MYSQL_DATABASE_DB'] = 'fitness'
-app.config['MYSQL_DATABASE_HOST'] = 'localhost'
-mysql.init_app(app)
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/main.py b/python-flask-ajax-mysql-login-logout/main.py
deleted file mode 100644
index 1ade8f93..00000000
--- a/python-flask-ajax-mysql-login-logout/main.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import rest
-from app import app
-from flask import render_template
-
-@app.route('/')
-def home_page():
- return render_template('index.html')
-
-@app.route('/login/page')
-def login_page():
- return render_template('login.html')
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/readme.rst b/python-flask-ajax-mysql-login-logout/readme.rst
deleted file mode 100644
index 8617891a..00000000
--- a/python-flask-ajax-mysql-login-logout/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can read tutorial https://www.roytuts.com/jquery-ajax-based-login-logout-using-python-flask-mysql/
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/rest.py b/python-flask-ajax-mysql-login-logout/rest.py
deleted file mode 100644
index 8c625ea6..00000000
--- a/python-flask-ajax-mysql-login-logout/rest.py
+++ /dev/null
@@ -1,27 +0,0 @@
-import dao
-from app import app
-from flask import jsonify, request, session
-
-@app.route('/login', methods=['POST'])
-def login():
- _json = request.json
- #print(_json)
- _username = _json['username']
- _password = _json['password']
-
- if _username and _password:
- user = dao.login(_username, _password)
-
- if user != None:
- session['username'] = user
- return jsonify({'message' : 'User logged in successfully'})
-
- resp = jsonify({'message' : 'Bad Request - invalid credendtials'})
- resp.status_code = 400
- return resp
-
-@app.route('/logout')
-def logout():
- if 'username' in session:
- session.pop('username', None)
- return jsonify({'message' : 'You successfully logged out'})
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/static/js/auth.js b/python-flask-ajax-mysql-login-logout/static/js/auth.js
deleted file mode 100644
index 489e3da0..00000000
--- a/python-flask-ajax-mysql-login-logout/static/js/auth.js
+++ /dev/null
@@ -1,72 +0,0 @@
-$(document).ready(function() {
- var isLoggedIn = localStorage.getItem('loggedin');
-
- if(isLoggedIn == 1) {
- $('#sign').hide();
- $('#loginform').hide();
- $('#signupform').hide();
- $('#logoff').show();
- } else {
- $('#sign').show();
- $('#logoff').hide();
- }
-
- $('#loginSubmit').on('click', function(e) {
- e.preventDefault();
-
- var email = $('#email').val();
- var pwd = $('#password').val();
-
- var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/i;
-
- if(email != "" && pwd != "" ) {
- if(!regex.test(email)) {
- $('#msg').html('Invalid email address ');
- } else {
- $.ajax({
- method: "POST",
- url: '/login',
- contentType: 'application/json;charset=UTF-8',
- data: JSON.stringify({'username': email, 'password': pwd}),
- dataType: "json",
- success: function(data) {
- localStorage.setItem('loggedin', 1);
-
- $('#sign').hide();
- $('#loginform').hide();
- $('#logoff').show();
- $('#msg').html('You are logged in ');
- },
- statusCode: {
- 400: function() {
- $('#msg').html('Bad request - invalid credentials ');
- }
- },
- error: function(err) {
- console.log(err);
- }
- });
- }
- } else {
- $('#msg').html('Invalid username and password ');
- }
- });
-
- $('#logout').on('click', function(e) {
- e.preventDefault();
-
- $.ajax({
- url: '/logout',
- dataType: "json",
- success: function(data) {
- localStorage.setItem('loggedin', 0);
- $('#sign').show();
- $('#logoff').hide();
- $('#msg').html('You are logged off ');
- },
- error: function(err) {
- console.log(err);
- }
- });
- });
-});
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/templates/index.html b/python-flask-ajax-mysql-login-logout/templates/index.html
deleted file mode 100644
index ec0cbe2e..00000000
--- a/python-flask-ajax-mysql-login-logout/templates/index.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
- jQuery AJAX Login Logout using Python Flask MySQL
-
-
-
-
-
-
-
-
-
-
- This is a home page
-
-
-
-
-
\ No newline at end of file
diff --git a/python-flask-ajax-mysql-login-logout/templates/login.html b/python-flask-ajax-mysql-login-logout/templates/login.html
deleted file mode 100644
index be7d7685..00000000
--- a/python-flask-ajax-mysql-login-logout/templates/login.html
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
- jQuery AJAX Login Logout using Python Flask MySQL
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
From 08b538ddd90a3533b460a63e8ae9fe3dca19e58c Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 11 Jan 2024 13:17:23 +0530
Subject: [PATCH 24/66] Update readme.rst
---
read-lines-from-last/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/read-lines-from-last/readme.rst b/read-lines-from-last/readme.rst
index 04757ea3..309bf498 100644
--- a/read-lines-from-last/readme.rst
+++ b/read-lines-from-last/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/read-last-n-lines-from-file-using-python/
+Please follow the tutorial https://roytuts.com/read-last-n-lines-from-file-using-python/
From 33c8d2636918080746feff9f41813536507f1c77 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 11 Jan 2024 13:18:06 +0530
Subject: [PATCH 25/66] Create SampleTextFile_10kb.txt
---
read-lines-from-last/SampleTextFile_10kb.txt | 27 ++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 read-lines-from-last/SampleTextFile_10kb.txt
diff --git a/read-lines-from-last/SampleTextFile_10kb.txt b/read-lines-from-last/SampleTextFile_10kb.txt
new file mode 100644
index 00000000..e0f98f53
--- /dev/null
+++ b/read-lines-from-last/SampleTextFile_10kb.txt
@@ -0,0 +1,27 @@
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus condimentum sagittis lacus, laoreet luctus ligula laoreet ut. Vestibulum ullamcorper accumsan velit vel vehicula. Proin tempor lacus arcu. Nunc at elit condimentum, semper nisi et, condimentum mi. In venenatis blandit nibh at sollicitudin. Vestibulum dapibus mauris at orci maximus pellentesque. Nullam id elementum ipsum. Suspendisse cursus lobortis viverra. Proin et erat at mauris tincidunt porttitor vitae ac dui.
+
+Donec vulputate lorem tortor, nec fermentum nibh bibendum vel. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent dictum luctus massa, non euismod lacus. Pellentesque condimentum dolor est, ut dapibus lectus luctus ac. Ut sagittis commodo arcu. Integer nisi nulla, facilisis sit amet nulla quis, eleifend suscipit purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam euismod ultrices lorem, sit amet imperdiet est tincidunt vel. Phasellus dictum justo sit amet ligula varius aliquet auctor et metus. Fusce vitae tortor et nisi pulvinar vestibulum eget in risus. Donec ante ex, placerat a lorem eget, ultricies bibendum purus. Nam sit amet neque non ante laoreet rutrum. Nullam aliquet commodo urna, sed ullamcorper odio feugiat id. Mauris nisi sapien, porttitor in condimentum nec, venenatis eu urna. Pellentesque feugiat diam est, at rhoncus orci porttitor non.
+
+Nulla luctus sem sit amet nisi consequat, id ornare ipsum dignissim. Sed elementum elit nibh, eu condimentum orci viverra quis. Aenean suscipit vitae felis non suscipit. Suspendisse pharetra turpis non eros semper dictum. Etiam tincidunt venenatis venenatis. Praesent eget gravida lorem, ut congue diam. Etiam facilisis elit at porttitor egestas. Praesent consequat, velit non vulputate convallis, ligula diam sagittis urna, in venenatis nisi justo ut mauris. Vestibulum posuere sollicitudin mi, et vulputate nisl fringilla non. Nulla ornare pretium velit a euismod. Nunc sagittis venenatis vestibulum. Nunc sodales libero a est ornare ultricies. Sed sed leo sed orci pellentesque ultrices. Mauris sollicitudin, sem quis placerat ornare, velit arcu convallis ligula, pretium finibus nisl sapien vel sem. Vivamus sit amet tortor id lorem consequat hendrerit. Nullam at dui risus.
+
+Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed feugiat semper velit consequat facilisis. Etiam facilisis justo non iaculis dictum. Fusce turpis neque, pharetra ut odio eu, hendrerit rhoncus lacus. Nunc orci felis, imperdiet vel interdum quis, porta eu ipsum. Pellentesque dictum sem lacinia, auctor dui in, malesuada nunc. Maecenas sit amet mollis eros. Proin fringilla viverra ligula, sollicitudin viverra ante sollicitudin congue. Donec mollis felis eu libero malesuada, et lacinia risus interdum.
+
+Etiam vitae accumsan augue. Ut urna orci, malesuada ut nisi a, condimentum gravida magna. Nulla bibendum ex in vulputate sagittis. Nulla facilisi. Nullam faucibus et metus ac consequat. Quisque tempor eros velit, id mattis nibh aliquet a. Aenean tempor elit ut finibus auctor. Sed at imperdiet mauris. Vestibulum pharetra non lacus sed pulvinar. Sed pellentesque magna a eros volutpat ullamcorper. In hac habitasse platea dictumst. Donec ipsum mi, feugiat in eros sed, varius lacinia turpis. Donec vulputate tincidunt dui ac laoreet. Sed in eros dui. Pellentesque placerat tristique ligula eu finibus. Proin nec faucibus felis, eu commodo ipsum.
+
+Integer eu hendrerit diam, sed consectetur nunc. Aliquam a sem vitae leo fermentum faucibus quis at sem. Etiam blandit, quam quis fermentum varius, ante urna ultricies lectus, vel pellentesque ligula arcu nec elit. Donec placerat ante in enim scelerisque pretium. Donec et rhoncus erat. Aenean tempor nisi vitae augue tincidunt luctus. Nam condimentum dictum ante, et laoreet neque pellentesque id. Curabitur consectetur cursus neque aliquam porta. Ut interdum nunc nec nibh vestibulum, in sagittis metus facilisis. Pellentesque feugiat condimentum metus. Etiam venenatis quam at ante rhoncus vestibulum. Maecenas suscipit congue pellentesque. Vestibulum suscipit scelerisque fermentum. Nulla iaculis risus ac vulputate porttitor.
+
+Mauris nec metus vel dolor blandit faucibus et vel magna. Ut tincidunt ipsum non nunc dapibus, sed blandit mi condimentum. Quisque pharetra interdum quam nec feugiat. Sed pellentesque nulla et turpis blandit interdum. Curabitur at metus vitae augue elementum viverra. Sed mattis lorem non enim fermentum finibus. Sed at dui in magna dignissim accumsan. Proin tincidunt ultricies cursus. Maecenas tincidunt magna at urna faucibus lacinia.
+
+Quisque venenatis justo sit amet tortor condimentum, nec tincidunt tellus viverra. Morbi risus ipsum, consequat convallis malesuada non, fermentum non velit. Nulla facilisis orci eget ligula mattis fermentum. Aliquam vel velit ultricies, sollicitudin nibh eu, congue velit. Donec nulla lorem, euismod id cursus at, sollicitudin et arcu. Proin vitae tincidunt ipsum. Vivamus elementum eleifend justo, placerat interdum nulla rutrum id.
+
+Phasellus fringilla luctus magna, a finibus justo dapibus a. Nam risus felis, rhoncus eget diam sit amet, congue facilisis nibh. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent consequat euismod diam, eget volutpat magna convallis at. Mauris placerat pellentesque imperdiet. Nulla porta scelerisque enim, et scelerisque neque bibendum in. Proin eget turpis nisi. Suspendisse ut est a erat egestas eleifend at euismod arcu. Donec aliquet, nisi sed faucibus condimentum, nisi metus dictum eros, nec dignissim justo odio id nulla. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas sollicitudin, justo id elementum eleifend, justo neque aliquet nibh, finibus malesuada metus erat eget neque. Suspendisse nec auctor orci. Aenean et vestibulum nulla. Nullam hendrerit augue tristique, commodo metus id, sodales lorem. Etiam feugiat dui est, vitae auctor risus convallis non.
+
+Maecenas turpis enim, consectetur eget lectus eu, hendrerit posuere lacus. Praesent efficitur, felis eget dapibus consectetur, nisi massa dignissim enim, nec semper dolor est eu urna. Nullam ut sodales lorem. Aliquam dapibus faucibus diam. Vestibulum vel magna et dolor gravida imperdiet ut sit amet sem. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur elementum metus tincidunt nulla euismod ultricies. Duis elementum nec neque in porttitor. Nulla sagittis lorem elit, et consectetur ante laoreet eu. Maecenas nulla tellus, scelerisque ac erat sed, fermentum dapibus metus. Donec tincidunt fermentum molestie.
+
+Sed consequat mi at maximus faucibus. Pellentesque aliquet tincidunt sapien vel auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Praesent accumsan nunc eget leo aliquam, facilisis hendrerit turpis egestas. Morbi in ultricies mauris, a eleifend turpis. Quisque fringilla massa iaculis risus ultrices, sit amet tincidunt dui varius. Quisque maximus porta tristique. Proin tincidunt, turpis ut tempor pretium, lectus ipsum ullamcorper leo, ac tincidunt felis dui non leo. Aenean porta augue ligula, non consequat ipsum aliquet et. Suspendisse ut suscipit ex. Pellentesque vitae lacinia arcu. Curabitur eget tincidunt nulla, non bibendum metus. Nullam mi ipsum, eleifend vitae tortor pulvinar, facilisis sollicitudin ipsum.
+
+Vestibulum molestie risus lorem, at feugiat lorem congue sed. Phasellus ullamcorper laoreet enim, nec aliquam turpis scelerisque et. Etiam dictum metus in elit aliquam dapibus. Vivamus vel lectus velit. Nam sed purus luctus, commodo dui quis, malesuada dui. Nulla porttitor aliquet elit sit amet viverra. Proin tempor nulla urna, non aliquet metus maximus quis. Aliquam ac lectus nec mi aliquam sagittis. Quisque venenatis quam eget nisl tempor, egestas rutrum eros eleifend. Nullam venenatis commodo velit, non tempor mauris fermentum ut. In a metus quis erat cursus sagittis. Donec congue nisl in viverra egestas.
+
+Vestibulum facilisis ligula magna, eu ornare lectus varius et. Mauris facilisis faucibus quam, quis mollis eros convallis non. Interdum et malesuada fames ac ante ipsum primis in faucibus. Praesent sit amet rutrum erat. Suspendisse potenti. Donec lorem mi, sagittis a fringilla sit amet, sagittis bibendum mauris. In in diam et lorem rutrum eleifend a et felis. Sed ac magna quis enim faucibus dictum. Suspendisse blandit enim eu ex laoreet gravida.
+
+Suspendisse sed semper felis. Etiam mattis magna mi, suscipit ullamcorper tellus euismod sed. Aenean congue scelerisque ligula id sodales. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nunc sem lectus, gravida ac dui non, pharetra posuere leo. Maecenas lacus libero, facilisis et elit vitae, commodo facilisis sem. Vivamus id nisl nulla. Integer at maximus dui. Ut a tincidunt lorem. Vivamus vitae ligula vel lacus cursus condimentum. Phasellus quis mauris lobortis, finibus lorem in, vulputate ex. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed faucibus aliquam metus, quis varius elit porttitor id. Vivamus dignissim sollicitudin scelerisque. Morbi tincidunt, dolor quis vehicula consequat, dui diam condimentum nunc, vitae scelerisque odio libero nec ligula. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
From c7d4ec53c5d71a6f2eb9286fd3dacea3cbb40f4c Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 11 Jan 2024 13:55:07 +0530
Subject: [PATCH 26/66] Delete python_flask_multiple_files_upload directory
Move to repo https://github.com/roytuts/flask/tree/master/flask-multiple-files-upload
---
python_flask_multiple_files_upload/app.py | 8 -----
python_flask_multiple_files_upload/main.py | 33 -------------------
python_flask_multiple_files_upload/readme.rst | 1 -
.../templates/upload.html | 24 --------------
4 files changed, 66 deletions(-)
delete mode 100644 python_flask_multiple_files_upload/app.py
delete mode 100644 python_flask_multiple_files_upload/main.py
delete mode 100644 python_flask_multiple_files_upload/readme.rst
delete mode 100644 python_flask_multiple_files_upload/templates/upload.html
diff --git a/python_flask_multiple_files_upload/app.py b/python_flask_multiple_files_upload/app.py
deleted file mode 100644
index d58a47f4..00000000
--- a/python_flask_multiple_files_upload/app.py
+++ /dev/null
@@ -1,8 +0,0 @@
-from flask import Flask
-
-UPLOAD_FOLDER = 'D:/uploads'
-
-app = Flask(__name__)
-app.secret_key = "secret key"
-app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
-app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
diff --git a/python_flask_multiple_files_upload/main.py b/python_flask_multiple_files_upload/main.py
deleted file mode 100644
index cff123f8..00000000
--- a/python_flask_multiple_files_upload/main.py
+++ /dev/null
@@ -1,33 +0,0 @@
-import os
-#import magic
-import urllib.request
-from app import app
-from flask import Flask, flash, request, redirect, render_template
-from werkzeug.utils import secure_filename
-
-ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
-
-def allowed_file(filename):
- return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
-
-@app.route('/')
-def upload_form():
- return render_template('upload.html')
-
-@app.route('/', methods=['POST'])
-def upload_file():
- if request.method == 'POST':
- # check if the post request has the files part
- if 'files[]' not in request.files:
- flash('No file part')
- return redirect(request.url)
- files = request.files.getlist('files[]')
- for file in files:
- if file and allowed_file(file.filename):
- filename = secure_filename(file.filename)
- file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
- flash('File(s) successfully uploaded')
- return redirect('/')
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python_flask_multiple_files_upload/readme.rst b/python_flask_multiple_files_upload/readme.rst
deleted file mode 100644
index 174cf9c7..00000000
--- a/python_flask_multiple_files_upload/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can go through the tutorial https://www.roytuts.com/python-flask-multiple-files-upload-example/
diff --git a/python_flask_multiple_files_upload/templates/upload.html b/python_flask_multiple_files_upload/templates/upload.html
deleted file mode 100644
index 6203d5cf..00000000
--- a/python_flask_multiple_files_upload/templates/upload.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-Python Flask Multiple Files Upload Example
-Select file(s) to upload
-
- {% with messages = get_flashed_messages() %}
- {% if messages %}
-
- {% for message in messages %}
- {{ message }}
- {% endfor %}
-
- {% endif %}
- {% endwith %}
-
-
\ No newline at end of file
From 4b664589321f5d2ffd2b473cf8c5d798ee1baa54 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 18 Jan 2024 14:51:27 +0530
Subject: [PATCH 27/66] Delete python-flask-flash directory
Moved to repo https://github.com/roytuts/flask/tree/master/flask-flash
---
python-flask-flash/main.py | 16 ----------------
python-flask-flash/readme.rst | 1 -
2 files changed, 17 deletions(-)
delete mode 100644 python-flask-flash/main.py
delete mode 100644 python-flask-flash/readme.rst
diff --git a/python-flask-flash/main.py b/python-flask-flash/main.py
deleted file mode 100644
index c758ec85..00000000
--- a/python-flask-flash/main.py
+++ /dev/null
@@ -1,16 +0,0 @@
-from flask import Flask, flash, render_template
-
-app = Flask(__name__)
-app.secret_key = "secret key"
-
-@app.route('/')
-def app_session():
- #flash('This is a flash message')
- #flash('This is a flash error message', 'error')
- #flash('This is a flash success message', 'success')
-
- return render_template('template.html')
-
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python-flask-flash/readme.rst b/python-flask-flash/readme.rst
deleted file mode 100644
index bdbc4a81..00000000
--- a/python-flask-flash/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can go through the tutorial https://www.roytuts.com/flash-message-management-in-python-flask
From b2f44e5dd5ced19f1bc8d078bf53b70400632ee8 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 12 Feb 2024 21:56:57 +0530
Subject: [PATCH 28/66] Delete
python-flask-mysql-ajax-username-availability-check directory
moved to repo https://github.com/roytuts/flask/tree/master/python-flask-mysql-ajax-username-availability-check
---
.../app.py | 3 -
.../db_config.py | 11 ----
.../main.py | 43 --------------
.../readme.rst | 1 -
.../templates/username.html | 56 -------------------
5 files changed, 114 deletions(-)
delete mode 100644 python-flask-mysql-ajax-username-availability-check/app.py
delete mode 100644 python-flask-mysql-ajax-username-availability-check/db_config.py
delete mode 100644 python-flask-mysql-ajax-username-availability-check/main.py
delete mode 100644 python-flask-mysql-ajax-username-availability-check/readme.rst
delete mode 100644 python-flask-mysql-ajax-username-availability-check/templates/username.html
diff --git a/python-flask-mysql-ajax-username-availability-check/app.py b/python-flask-mysql-ajax-username-availability-check/app.py
deleted file mode 100644
index acd3dac9..00000000
--- a/python-flask-mysql-ajax-username-availability-check/app.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from flask import Flask
-
-app = Flask(__name__)
\ No newline at end of file
diff --git a/python-flask-mysql-ajax-username-availability-check/db_config.py b/python-flask-mysql-ajax-username-availability-check/db_config.py
deleted file mode 100644
index 68c6468a..00000000
--- a/python-flask-mysql-ajax-username-availability-check/db_config.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from app import app
-from flaskext.mysql import MySQL
-
-mysql = MySQL()
-
-# MySQL configurations
-app.config['MYSQL_DATABASE_USER'] = 'root'
-app.config['MYSQL_DATABASE_PASSWORD'] = 'root'
-app.config['MYSQL_DATABASE_DB'] = 'roytuts'
-app.config['MYSQL_DATABASE_HOST'] = 'localhost'
-mysql.init_app(app)
\ No newline at end of file
diff --git a/python-flask-mysql-ajax-username-availability-check/main.py b/python-flask-mysql-ajax-username-availability-check/main.py
deleted file mode 100644
index 786faf69..00000000
--- a/python-flask-mysql-ajax-username-availability-check/main.py
+++ /dev/null
@@ -1,43 +0,0 @@
-import pymysql
-from app import app
-from db_config import mysql
-from flask import jsonify, request, render_template
-
-@app.route('/user_check', methods=['POST'])
-def username_check():
- conn = None
- cursor = None
- try:
- username = request.form['username']
-
- # validate the received values
- if username and request.method == 'POST':
- conn = mysql.connect()
- cursor = conn.cursor(pymysql.cursors.DictCursor)
- cursor.execute("SELECT * FROM user WHERE login_username=%s", username)
- row = cursor.fetchone()
-
- if row:
- resp = jsonify('Username unavailable ')
- resp.status_code = 200
- return resp
- else:
- resp = jsonify('Username available ')
- resp.status_code = 200
- return resp
- else:
- resp = jsonify('Username is required field. ')
- resp.status_code = 200
- return resp
- except Exception as e:
- print(e)
- finally:
- cursor.close()
- conn.close()
-
-@app.route('/')
-def home():
- return render_template('username.html')
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python-flask-mysql-ajax-username-availability-check/readme.rst b/python-flask-mysql-ajax-username-availability-check/readme.rst
deleted file mode 100644
index c5dd7df8..00000000
--- a/python-flask-mysql-ajax-username-availability-check/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can go through the tutorial https://www.roytuts.com/python-flask-username-availability-check-with-mysql-ajax/
diff --git a/python-flask-mysql-ajax-username-availability-check/templates/username.html b/python-flask-mysql-ajax-username-availability-check/templates/username.html
deleted file mode 100644
index d46da158..00000000
--- a/python-flask-mysql-ajax-username-availability-check/templates/username.html
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- Check username availability using Python Flask, AJAX, MySQL
-
-
-
-
-
-
-
Python Flask, AJAX, MySQL - username availability check
-
-
-
-
-
-
-
-
From 349bf7edce9684763dece469240b2a6d114647d5 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Tue, 13 Feb 2024 23:03:49 +0530
Subject: [PATCH 29/66] Delete
python-flask-mysql-jquery-ajax-multi-step-registration directory
Moved to repo https://github.com/roytuts/flask/tree/master/python-flask-mysql-jquery-ajax-multi-step-registration
---
.../app.py | 4 -
.../db_config.py | 11 -
.../main.py | 49 ----
.../readme.rst | 1 -
.../templates/multi-step-registration.html | 253 ------------------
5 files changed, 318 deletions(-)
delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/app.py
delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py
delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/main.py
delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst
delete mode 100644 python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html
diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/app.py b/python-flask-mysql-jquery-ajax-multi-step-registration/app.py
deleted file mode 100644
index 5e65b47b..00000000
--- a/python-flask-mysql-jquery-ajax-multi-step-registration/app.py
+++ /dev/null
@@ -1,4 +0,0 @@
-from flask import Flask
-
-app = Flask(__name__)
-app.secret_key = "secret key"
\ No newline at end of file
diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py b/python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py
deleted file mode 100644
index 68c6468a..00000000
--- a/python-flask-mysql-jquery-ajax-multi-step-registration/db_config.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from app import app
-from flaskext.mysql import MySQL
-
-mysql = MySQL()
-
-# MySQL configurations
-app.config['MYSQL_DATABASE_USER'] = 'root'
-app.config['MYSQL_DATABASE_PASSWORD'] = 'root'
-app.config['MYSQL_DATABASE_DB'] = 'roytuts'
-app.config['MYSQL_DATABASE_HOST'] = 'localhost'
-mysql.init_app(app)
\ No newline at end of file
diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/main.py b/python-flask-mysql-jquery-ajax-multi-step-registration/main.py
deleted file mode 100644
index df09f7e8..00000000
--- a/python-flask-mysql-jquery-ajax-multi-step-registration/main.py
+++ /dev/null
@@ -1,49 +0,0 @@
-import pymysql
-from app import app
-from db_config import mysql
-from flask import flash, render_template, request, redirect, url_for
-from werkzeug import generate_password_hash, check_password_hash
-
-@app.route('/register', methods=['POST'])
-def save_user_info():
- cursor = None
- try:
- name = request.form['name']
- dob = request.form['dob']
- gender = request.form['gender']
- password = request.form['password']
- phone = request.form['phone']
- email = request.form['email']
- address = request.form['address']
-
- # validate the received values
- if name and dob and gender and password and phone and email and address and request.method == 'POST':
-
- #do not save password as a plain text
- _hashed_password = generate_password_hash(password)
-
- # save user information
- sql = "INSERT INTO user(name, password, email, phone, gender, dob, address) VALUES(%s, %s, %s, %s, %s, %s, %s)"
- data = (name, _hashed_password, email, phone, gender, dob, address)
- conn = mysql.connect()
- cursor = conn.cursor()
- cursor.execute(sql, data)
- conn.commit()
-
- flash('You registered successfully!')
-
- return redirect(url_for('.home'))
- else:
- return 'Error while saving user information'
- except Exception as e:
- print(e)
- finally:
- cursor.close()
- conn.close()
-
-@app.route('/')
-def home():
- return render_template('multi-step-registration.html')
-
-if __name__ == "__main__":
- app.run()
\ No newline at end of file
diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst b/python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst
deleted file mode 100644
index d6506640..00000000
--- a/python-flask-mysql-jquery-ajax-multi-step-registration/readme.rst
+++ /dev/null
@@ -1 +0,0 @@
-You can go through the tutorial https://www.roytuts.com/python-flask-multi-step-registration-form-with-mysql-jquery/
diff --git a/python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html b/python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html
deleted file mode 100644
index 35741603..00000000
--- a/python-flask-mysql-jquery-ajax-multi-step-registration/templates/multi-step-registration.html
+++ /dev/null
@@ -1,253 +0,0 @@
-
-
- Multi Step Registration
-
-
-
-
-
-
-
-
-
- Personal Detail
- Password
- Contact
-
-
-
- {% with messages = get_flashed_messages() %}
- {% if messages %}
-
- {% for message in messages %}
- {{ message }}
- {% endfor %}
-
- {% endif %}
- {% endwith %}
-
-
-
-
-
From 37f74a2eb4df961b5c1dc4976cfeb928b77c5e70 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Thu, 18 Jul 2024 17:19:43 +0530
Subject: [PATCH 30/66] Update readme.rst
---
python-email-html/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-email-html/readme.rst b/python-email-html/readme.rst
index a511e3e8..b3a8275e 100644
--- a/python-email-html/readme.rst
+++ b/python-email-html/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-send-an-html-email-using-python/
+Please follow the tutorial https://roytuts.com/how-to-send-an-html-email-using-python/
From 719d6734d6846b8dc8420ae4f69e0b3c8c43f088 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:03:25 +0530
Subject: [PATCH 31/66] Update readme.rst
---
python-email-text/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-email-text/readme.rst b/python-email-text/readme.rst
index a41d94b0..70eb4624 100644
--- a/python-email-text/readme.rst
+++ b/python-email-text/readme.rst
@@ -1 +1 @@
-You can read tutorial at https://www.roytuts.com/how-to-send-a-simple-email-using-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/how-to-send-a-simple-email-using-python/
From 2cae98487bd36ca7b3ccd624f629e405fc4e0b0a Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:05:25 +0530
Subject: [PATCH 32/66] Update html_email.py
---
python-email-html/html_email.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python-email-html/html_email.py b/python-email-html/html_email.py
index 468424bd..9c628ac7 100644
--- a/python-email-html/html_email.py
+++ b/python-email-html/html_email.py
@@ -12,7 +12,7 @@
Hello
Here is an example of sending HTML email using Python. Please click on below link:
-
+
Send an HTML email using Python
@@ -33,4 +33,4 @@
s.login(fromEmail, 'gmail password')
s.send_message(msg)
-s.quit()
\ No newline at end of file
+s.quit()
From e35d7c0734236b735e6a43cafc252273b0621124 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:07:34 +0530
Subject: [PATCH 33/66] Update html_email_ssl.py
---
python-email-html/html_email_ssl.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/python-email-html/html_email_ssl.py b/python-email-html/html_email_ssl.py
index 3d0773db..e2b074a3 100644
--- a/python-email-html/html_email_ssl.py
+++ b/python-email-html/html_email_ssl.py
@@ -12,7 +12,7 @@
Hello
Here is an example of sending HTML email using Python. Please click on below link:
-
+
Send an HTML email using Python
@@ -31,4 +31,4 @@
s.login(fromEmail, 'gmail password')
s.send_message(msg)
-s.quit()
\ No newline at end of file
+s.quit()
From 1139d050aebf76ee906b9f0fa1fd59d3b89964d7 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:25:12 +0530
Subject: [PATCH 34/66] Update readme.rst
---
python-blur-image/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-blur-image/readme.rst b/python-blur-image/readme.rst
index 5d1ffaef..f5e310a3 100644
--- a/python-blur-image/readme.rst
+++ b/python-blur-image/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/python-blur-image-pillow/
+Please follow the tutorial https://roytuts.com/python-blur-image-pillow/
From 11763d4c7c452a6d71897accf469a80731be56b3 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:25:33 +0530
Subject: [PATCH 35/66] Update readme.rst
---
python-bulk-images-resize/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-bulk-images-resize/readme.rst b/python-bulk-images-resize/readme.rst
index 1525949e..d909698f 100644
--- a/python-bulk-images-resize/readme.rst
+++ b/python-bulk-images-resize/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-resize-bulk-images-using-python/
+Please follow the tutorial https://roytuts.com/how-to-resize-bulk-images-using-python/
From ca01a78642277dc70f66b22b784af3a833515b11 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:25:53 +0530
Subject: [PATCH 36/66] Update readme.rst
---
python-connect-mysql/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-connect-mysql/readme.rst b/python-connect-mysql/readme.rst
index a4bd56ca..71f22bab 100644
--- a/python-connect-mysql/readme.rst
+++ b/python-connect-mysql/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-connect-to-mysql-database-using-python-in-different-ways/
+Please follow the tutorial https://roytuts.com/how-to-connect-to-mysql-database-using-python-in-different-ways/
From a400e62c694d106a3e30fda10e8a3d2694638ae4 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:26:31 +0530
Subject: [PATCH 37/66] Update readme.rst
---
python-different-date-time-formats/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-different-date-time-formats/readme.rst b/python-different-date-time-formats/readme.rst
index dd6de655..3a566f5c 100644
--- a/python-different-date-time-formats/readme.rst
+++ b/python-different-date-time-formats/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://roytuts.com/how-to-display-date-time-in-different-formats-in-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/how-to-display-date-time-in-different-formats-in-python/
From fc343812c257660e055dbce7b67b55a2dcb0f96b Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:26:52 +0530
Subject: [PATCH 38/66] Update readme.rst
---
python-email-attachments/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-email-attachments/readme.rst b/python-email-attachments/readme.rst
index 3e3b37f6..2d416f96 100644
--- a/python-email-attachments/readme.rst
+++ b/python-email-attachments/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-send-attachments-with-email-using-python/
+Please follow the tutorial https://roytuts.com/how-to-send-attachments-with-email-using-python/
From 003f24cb60ce7b1f32ac9ce76979341db55e3809 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:27:18 +0530
Subject: [PATCH 39/66] Update readme.rst
---
python-email-rfc-822/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-email-rfc-822/readme.rst b/python-email-rfc-822/readme.rst
index 5d1c46e2..5682a997 100644
--- a/python-email-rfc-822/readme.rst
+++ b/python-email-rfc-822/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/how-to-use-rfc-822-for-sending-email-in-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/how-to-use-rfc-822-for-sending-email-in-python/
From 16dc88ab225413a529e80ffc643125ba82206bdd Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:27:40 +0530
Subject: [PATCH 40/66] Update readme.rst
---
python-extract-text-from-pdf/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-extract-text-from-pdf/readme.rst b/python-extract-text-from-pdf/readme.rst
index bde676bb..1f6c66e7 100644
--- a/python-extract-text-from-pdf/readme.rst
+++ b/python-extract-text-from-pdf/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/extract-text-from-pdf-file-using-python/
+Please follow the tutorial https://roytuts.com/extract-text-from-pdf-file-using-python/
From 012b535747cea87de9a14d2b21dfe2c60c363c30 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:27:59 +0530
Subject: [PATCH 41/66] Update readme.rst
---
python-fibonacci-series/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-fibonacci-series/readme.rst b/python-fibonacci-series/readme.rst
index ee12c3bd..d79603f5 100644
--- a/python-fibonacci-series/readme.rst
+++ b/python-fibonacci-series/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/fibonacci-series-using-python/
+Please follow the tutorial https://roytuts.com/fibonacci-series-using-python/
From 2e33b96e2b8ebcae2b7322d6866ddc50d41882fe Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:28:17 +0530
Subject: [PATCH 42/66] Update readme.rst
---
python-file-read-write-compress/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-file-read-write-compress/readme.rst b/python-file-read-write-compress/readme.rst
index d80d982e..64023582 100644
--- a/python-file-read-write-compress/readme.rst
+++ b/python-file-read-write-compress/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-read-write-and-compress-text-file-in-python/
+Please follow the tutorial https://roytuts.com/how-to-read-write-and-compress-text-file-in-python/
From c04bc52dc6bcb2b7ce61de887e218d0ca845a421 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:28:36 +0530
Subject: [PATCH 43/66] Update readme.rst
---
python-flask-mysql-csv-report/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-mysql-csv-report/readme.rst b/python-flask-mysql-csv-report/readme.rst
index 5759c7b9..05a7dc6d 100644
--- a/python-flask-mysql-csv-report/readme.rst
+++ b/python-flask-mysql-csv-report/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/generate-csv-report-from-mysql-database-using-python-flask/
+Please follow the tutorial https://roytuts.com/generate-csv-report-from-mysql-database-using-python-flask/
From 2ceaf1c3ca86ffd1baf97cfe07eecac171b39003 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:28:53 +0530
Subject: [PATCH 44/66] Update readme.rst
---
python-flask-mysql-excel-report/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-mysql-excel-report/readme.rst b/python-flask-mysql-excel-report/readme.rst
index 48d6633b..a0100698 100644
--- a/python-flask-mysql-excel-report/readme.rst
+++ b/python-flask-mysql-excel-report/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/generate-excel-report-from-mysql-database-using-python-flask/
+Please follow the tutorial https://roytuts.com/generate-excel-report-from-mysql-database-using-python-flask/
From 22d5b4c9a67f9c9ab4580f8781a709844812a172 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:29:12 +0530
Subject: [PATCH 45/66] Update readme.rst
---
python-flask-mysql-online-visitor-tracker/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-mysql-online-visitor-tracker/readme.rst b/python-flask-mysql-online-visitor-tracker/readme.rst
index a97eb521..bd64407f 100644
--- a/python-flask-mysql-online-visitor-tracker/readme.rst
+++ b/python-flask-mysql-online-visitor-tracker/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/python-flask-online-visitor-tracking-system/
+Please follow the tutorial https://roytuts.com/python-flask-online-visitor-tracking-system/
From 709bcd3ca3c77a4ee02252cd2dce0d4897c5e1fc Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:29:30 +0530
Subject: [PATCH 46/66] Update readme.rst
---
python-flask-mysql-pdf-report/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-mysql-pdf-report/readme.rst b/python-flask-mysql-pdf-report/readme.rst
index 7b9e5be3..31f9299b 100644
--- a/python-flask-mysql-pdf-report/readme.rst
+++ b/python-flask-mysql-pdf-report/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/generate-pdf-report-from-mysql-database-using-python-flask/
+Please follow the tutorial https://roytuts.com/generate-pdf-report-from-mysql-database-using-python-flask/
From edfee42bc27acc96e5a81f3be796c82e1b276816 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:29:48 +0530
Subject: [PATCH 47/66] Update readme.rst
---
python-flask-rest-api-basic-auth/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-rest-api-basic-auth/readme.rst b/python-flask-rest-api-basic-auth/readme.rst
index 7aa212bb..916255b6 100644
--- a/python-flask-rest-api-basic-auth/readme.rst
+++ b/python-flask-rest-api-basic-auth/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/python-flask-http-basic-authentication/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/python-flask-http-basic-authentication/
From 9aa2bd15091e1174ca57b6cc7cc54d94666dbb5a Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:30:05 +0530
Subject: [PATCH 48/66] Update readme.rst
---
python-flask-rest-api-login-logout-remember/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-rest-api-login-logout-remember/readme.rst b/python-flask-rest-api-login-logout-remember/readme.rst
index 6830f76d..228a9235 100644
--- a/python-flask-rest-api-login-logout-remember/readme.rst
+++ b/python-flask-rest-api-login-logout-remember/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/python-flask-login-logout-with-remember-me/
+Please follow the tutorial https://roytuts.com/python-flask-login-logout-with-remember-me/
From a26ddc1ff6dbffff33d6de5cb096cc01c7152cd0 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:30:22 +0530
Subject: [PATCH 49/66] Update readme.rst
---
python-flask-rest-api-login-logout/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-rest-api-login-logout/readme.rst b/python-flask-rest-api-login-logout/readme.rst
index d8e25e5d..f5501ccb 100644
--- a/python-flask-rest-api-login-logout/readme.rst
+++ b/python-flask-rest-api-login-logout/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/python-flask-rest-api-login-logout-example/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/python-flask-rest-api-login-logout-example/
From 6be88d2876176239b0fb896844a34b0247cf1ae5 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:30:49 +0530
Subject: [PATCH 50/66] Update readme.rst
---
python-flask-xchart/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-flask-xchart/readme.rst b/python-flask-xchart/readme.rst
index d7ab4857..be2b62b3 100644
--- a/python-flask-xchart/readme.rst
+++ b/python-flask-xchart/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/ajax-jquery-based-xchart-example-using-python-flask-mysql/
+Please follow the tutorial https://roytuts.com/ajax-jquery-based-xchart-example-using-python-flask-mysql/
From 3d870c0568d0b1c3fcc4c89d65da5c326323523a Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:31:22 +0530
Subject: [PATCH 51/66] Update readme.rst
---
python-pdf-text-to-audio/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-pdf-text-to-audio/readme.rst b/python-pdf-text-to-audio/readme.rst
index fc6ae658..2ad269f9 100644
--- a/python-pdf-text-to-audio/readme.rst
+++ b/python-pdf-text-to-audio/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/convert-pdf-file-text-to-audio-speech-using-python-and-google-gtts-api/
+Please follow the tutorial https://roytuts.com/convert-pdf-file-text-to-audio-speech-using-python-and-google-gtts-api/
From b00b5e58b94bb819cb7d05cf7d17f1c24e6f8788 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:32:45 +0530
Subject: [PATCH 52/66] Update readme.rst
---
python-record-my-voice/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-record-my-voice/readme.rst b/python-record-my-voice/readme.rst
index 8545d691..aec9108d 100644
--- a/python-record-my-voice/readme.rst
+++ b/python-record-my-voice/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/python-voice-recording-through-microphone-for-arbitrary-time-using-pyaudio/
+Please follow the tutorial https://roytuts.com/python-voice-recording-through-microphone-for-arbitrary-time-using-pyaudio/
From 2c5b030323ca01628442b41b8f15b94256468537 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:33:13 +0530
Subject: [PATCH 53/66] Update readme.rst
---
python-video-to-gif/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-video-to-gif/readme.rst b/python-video-to-gif/readme.rst
index 12902174..3bd28632 100644
--- a/python-video-to-gif/readme.rst
+++ b/python-video-to-gif/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://roytuts.com/how-to-convert-video-mp4-avi-clips-to-gif-in-python/
+Please follow the tutorial https://roytuts.com/how-to-convert-video-mp4-avi-clips-to-gif-in-python/
From 7441c6803a9857e9740059e7e5abe4677476dae8 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:41:40 +0530
Subject: [PATCH 54/66] Update readme.rst
---
python-write-file-content-pdf/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-write-file-content-pdf/readme.rst b/python-write-file-content-pdf/readme.rst
index ad85c843..01a45162 100644
--- a/python-write-file-content-pdf/readme.rst
+++ b/python-write-file-content-pdf/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/how-to-convert-file-content-into-pdf-document-using-python/
+Please follow the tutorial https://roytuts.com/how-to-convert-file-content-into-pdf-document-using-python/
From 57c6a59b3c95ebcd5e6fcb604d43611092c6c11a Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:41:58 +0530
Subject: [PATCH 55/66] Update readme.rst
---
python-write-html-pdf/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-write-html-pdf/readme.rst b/python-write-html-pdf/readme.rst
index 87a1e441..23c9253a 100644
--- a/python-write-html-pdf/readme.rst
+++ b/python-write-html-pdf/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/how-to-convert-html-content-into-pdf-document-using-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/how-to-convert-html-content-into-pdf-document-using-python/
From 324863ab9e10f046a82c20edbee7a27fedaa7f66 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:42:38 +0530
Subject: [PATCH 56/66] Update readme.rst
---
python_flask_mysql_bootstrap_calendar_events/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python_flask_mysql_bootstrap_calendar_events/readme.rst b/python_flask_mysql_bootstrap_calendar_events/readme.rst
index ff1f9516..3b835cc7 100644
--- a/python_flask_mysql_bootstrap_calendar_events/readme.rst
+++ b/python_flask_mysql_bootstrap_calendar_events/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/bootstrap-calendar-events-demo-using-python-flask-mysql/
+Please follow the tutorial https://roytuts.com/bootstrap-calendar-events-demo-using-python-flask-mysql/
From fba43769a119f7111cf9a10c6edd6e895ece5a16 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:43:05 +0530
Subject: [PATCH 57/66] Update readme.rst
---
real-time-face-detection/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/real-time-face-detection/readme.rst b/real-time-face-detection/readme.rst
index 72191e6d..05217726 100644
--- a/real-time-face-detection/readme.rst
+++ b/real-time-face-detection/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/real-time-face-detection-in-webcam-using-python/
+Please follow the tutorial https://roytuts.com/real-time-face-detection-in-webcam-using-python/
From 48f7dde682544a64d4efb7f90c781aa4d1e85be2 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:43:24 +0530
Subject: [PATCH 58/66] Update readme.rst
---
real_time_eye_detection/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/real_time_eye_detection/readme.rst b/real_time_eye_detection/readme.rst
index 81cbd3dd..8cbe87ce 100644
--- a/real_time_eye_detection/readme.rst
+++ b/real_time_eye_detection/readme.rst
@@ -1 +1 @@
-You can go through the tutorial https://www.roytuts.com/real-time-eye-detection-in-webcam-using-python-3/
+Please follow the tutorial https://roytuts.com/real-time-eye-detection-in-webcam-using-python-3/
From 91cfdc6a398b0e0e1c584abbdcf75a2d620ef76b Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:43:43 +0530
Subject: [PATCH 59/66] Update readme.rst
---
retrive-forgotten-password/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/retrive-forgotten-password/readme.rst b/retrive-forgotten-password/readme.rst
index 414d8d4e..942a7fa2 100644
--- a/retrive-forgotten-password/readme.rst
+++ b/retrive-forgotten-password/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/check-saved-password-in-wifi-network/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/check-saved-password-in-wifi-network/
From 3beaeca4fdd3e9d6952e85be14be9d63304a7706 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:44:01 +0530
Subject: [PATCH 60/66] Update readme.rst
---
see-yourself-camera/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/see-yourself-camera/readme.rst b/see-yourself-camera/readme.rst
index 1416097f..67b58966 100644
--- a/see-yourself-camera/readme.rst
+++ b/see-yourself-camera/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/see-yourself-in-webcam-using-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/see-yourself-in-webcam-using-python/
From 9294708a1e07fce559f8870f272d24f5f1eb0309 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 19 Jul 2024 15:44:18 +0530
Subject: [PATCH 61/66] Update readme.rst
---
wifi-connected-users/readme.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wifi-connected-users/readme.rst b/wifi-connected-users/readme.rst
index 70b9c6e0..52badff0 100644
--- a/wifi-connected-users/readme.rst
+++ b/wifi-connected-users/readme.rst
@@ -1 +1 @@
-You can read tutorial https://www.roytuts.com/find-all-users-connected-to-wifi-network-using-python/
\ No newline at end of file
+Please follow the tutorial https://roytuts.com/find-all-users-connected-to-wifi-network-using-python/
From 5da0f89477b5b061d5dbbe311e6e08f5da87d48e Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Tue, 26 Aug 2025 18:46:57 +0530
Subject: [PATCH 62/66] Update haarcascade_frontalface_alt.xml
---
.../haarcascade_frontalface_alt.xml | 3564 -----------------
1 file changed, 3564 deletions(-)
diff --git a/real-time-face-detection/haarcascade_frontalface_alt.xml b/real-time-face-detection/haarcascade_frontalface_alt.xml
index 3e86f7d0..ade4b212 100644
--- a/real-time-face-detection/haarcascade_frontalface_alt.xml
+++ b/real-time-face-detection/haarcascade_frontalface_alt.xml
@@ -24347,3568 +24347,4 @@
0 0 5 3 2.
<_>
5 3 5 3 2.
-
-
- <_>
- 6 6 9 2 -1.
- <_>
- 9 6 3 2 3.
- <_>
-
- <_>
- 4 11 1 3 -1.
- <_>
- 4 12 1 1 3.
- <_>
-
- <_>
- 14 12 6 6 -1.
- <_>
- 14 12 3 6 2.
- <_>
-
- <_>
- 7 0 3 7 -1.
- <_>
- 8 0 1 7 3.
- <_>
-
- <_>
- 9 8 3 3 -1.
- <_>
- 10 8 1 3 3.
- <_>
-
- <_>
- 8 8 3 3 -1.
- <_>
- 9 8 1 3 3.
- <_>
-
- <_>
- 5 10 11 3 -1.
- <_>
- 5 11 11 1 3.
- <_>
-
- <_>
- 5 7 10 1 -1.
- <_>
- 10 7 5 1 2.
- <_>
-
- <_>
- 9 7 3 2 -1.
- <_>
- 10 7 1 2 3.
- <_>
-
- <_>
- 8 7 3 2 -1.
- <_>
- 9 7 1 2 3.
- <_>
-
- <_>
- 11 9 4 2 -1.
- <_>
- 11 9 2 2 2.
- <_>
-
- <_>
- 5 9 4 2 -1.
- <_>
- 7 9 2 2 2.
- <_>
-
- <_>
- 14 10 2 4 -1.
- <_>
- 14 12 2 2 2.
- <_>
-
- <_>
- 7 7 3 2 -1.
- <_>
- 8 7 1 2 3.
- <_>
-
- <_>
- 14 17 6 3 -1.
- <_>
- 14 18 6 1 3.
- <_>
-
- <_>
- 4 5 12 12 -1.
- <_>
- 4 5 6 6 2.
- <_>
- 10 11 6 6 2.
- <_>
-
- <_>
- 6 9 8 8 -1.
- <_>
- 10 9 4 4 2.
- <_>
- 6 13 4 4 2.
- <_>
-
- <_>
- 0 4 15 4 -1.
- <_>
- 5 4 5 4 3.
- <_>
-
- <_>
- 13 2 4 1 -1.
- <_>
- 13 2 2 1 2.
- <_>
-
- <_>
- 4 12 2 2 -1.
- <_>
- 4 13 2 1 2.
- <_>
-
- <_>
- 8 13 4 3 -1.
- <_>
- 8 14 4 1 3.
- <_>
-
- <_>
- 9 13 2 3 -1.
- <_>
- 9 14 2 1 3.
- <_>
-
- <_>
- 13 11 2 3 -1.
- <_>
- 13 12 2 1 3.
- <_>
-
- <_>
- 7 12 4 4 -1.
- <_>
- 7 12 2 2 2.
- <_>
- 9 14 2 2 2.
- <_>
-
- <_>
- 10 11 2 2 -1.
- <_>
- 11 11 1 1 2.
- <_>
- 10 12 1 1 2.
- <_>
-
- <_>
- 8 17 3 2 -1.
- <_>
- 9 17 1 2 3.
- <_>
-
- <_>
- 10 11 2 2 -1.
- <_>
- 11 11 1 1 2.
- <_>
- 10 12 1 1 2.
- <_>
-
- <_>
- 0 17 6 3 -1.
- <_>
- 0 18 6 1 3.
- <_>
-
- <_>
- 10 11 2 2 -1.
- <_>
- 11 11 1 1 2.
- <_>
- 10 12 1 1 2.
- <_>
-
- <_>
- 8 11 2 2 -1.
- <_>
- 8 11 1 1 2.
- <_>
- 9 12 1 1 2.
- <_>
-
- <_>
- 12 5 8 4 -1.
- <_>
- 12 5 4 4 2.
- <_>
-
- <_>
- 0 5 8 4 -1.
- <_>
- 4 5 4 4 2.
- <_>
-
- <_>
- 13 2 4 1 -1.
- <_>
- 13 2 2 1 2.
- <_>
-
- <_>
- 3 2 4 1 -1.
- <_>
- 5 2 2 1 2.
- <_>
-
- <_>
- 10 0 4 2 -1.
- <_>
- 12 0 2 1 2.
- <_>
- 10 1 2 1 2.
- <_>
-
- <_>
- 7 12 3 1 -1.
- <_>
- 8 12 1 1 3.
- <_>
-
- <_>
- 8 11 4 8 -1.
- <_>
- 10 11 2 4 2.
- <_>
- 8 15 2 4 2.
- <_>
-
- <_>
- 9 9 2 2 -1.
- <_>
- 9 10 2 1 2.
- <_>
-
- <_>
- 3 18 15 2 -1.
- <_>
- 3 19 15 1 2.
- <_>
-
- <_>
- 2 6 2 12 -1.
- <_>
- 2 6 1 6 2.
- <_>
- 3 12 1 6 2.
- <_>
-
- <_>
- 9 8 2 3 -1.
- <_>
- 9 9 2 1 3.
- <_>
-
- <_>
- 7 10 3 2 -1.
- <_>
- 8 10 1 2 3.
- <_>
-
- <_>
- 11 11 3 1 -1.
- <_>
- 12 11 1 1 3.
- <_>
-
- <_>
- 6 11 3 1 -1.
- <_>
- 7 11 1 1 3.
- <_>
-
- <_>
- 9 2 4 2 -1.
- <_>
- 11 2 2 1 2.
- <_>
- 9 3 2 1 2.
- <_>
-
- <_>
- 4 12 2 3 -1.
- <_>
- 4 13 2 1 3.
- <_>
-
- <_>
- 2 1 18 3 -1.
- <_>
- 8 1 6 3 3.
- <_>
-
- <_>
- 5 1 4 14 -1.
- <_>
- 7 1 2 14 2.
- <_>
-
- <_>
- 8 16 12 3 -1.
- <_>
- 8 16 6 3 2.
- <_>
-
- <_>
- 1 17 18 3 -1.
- <_>
- 7 17 6 3 3.
- <_>
-
- <_>
- 9 14 2 6 -1.
- <_>
- 9 17 2 3 2.
- <_>
-
- <_>
- 9 12 1 8 -1.
- <_>
- 9 16 1 4 2.
- <_>
-
- <_>
- 9 14 2 3 -1.
- <_>
- 9 15 2 1 3.
- <_>
-
- <_>
- 9 6 2 12 -1.
- <_>
- 9 10 2 4 3.
- <_>
-
- <_>
- 12 9 3 3 -1.
- <_>
- 12 10 3 1 3.
- <_>
-
- <_>
- 0 1 4 8 -1.
- <_>
- 2 1 2 8 2.
- <_>
-
- <_>
- 9 1 6 2 -1.
- <_>
- 12 1 3 1 2.
- <_>
- 9 2 3 1 2.
- <_>
-
- <_>
- 1 3 12 14 -1.
- <_>
- 1 10 12 7 2.
- <_>
-
- <_>
- 8 12 4 2 -1.
- <_>
- 10 12 2 1 2.
- <_>
- 8 13 2 1 2.
- <_>
-
- <_>
- 1 9 10 2 -1.
- <_>
- 1 9 5 1 2.
- <_>
- 6 10 5 1 2.
- <_>
-
- <_>
- 8 15 4 3 -1.
- <_>
- 8 16 4 1 3.
- <_>
-
- <_>
- 6 8 8 3 -1.
- <_>
- 6 9 8 1 3.
- <_>
-
- <_>
- 9 15 5 3 -1.
- <_>
- 9 16 5 1 3.
- <_>
-
- <_>
- 8 7 4 3 -1.
- <_>
- 8 8 4 1 3.
- <_>
-
- <_>
- 7 7 6 2 -1.
- <_>
- 7 8 6 1 2.
- <_>
-
- <_>
- 5 7 8 2 -1.
- <_>
- 5 7 4 1 2.
- <_>
- 9 8 4 1 2.
- <_>
-
- <_>
- 12 9 3 3 -1.
- <_>
- 12 10 3 1 3.
- <_>
-
- <_>
- 4 7 4 2 -1.
- <_>
- 4 8 4 1 2.
- <_>
-
- <_>
- 14 2 6 9 -1.
- <_>
- 14 5 6 3 3.
- <_>
-
- <_>
- 4 9 3 3 -1.
- <_>
- 5 9 1 3 3.
- <_>
-
- <_>
- 12 9 3 3 -1.
- <_>
- 12 10 3 1 3.
- <_>
-
- <_>
- 0 2 6 9 -1.
- <_>
- 0 5 6 3 3.
- <_>
-
- <_>
- 17 3 3 6 -1.
- <_>
- 18 3 1 6 3.
- <_>
-
- <_>
- 0 3 3 6 -1.
- <_>
- 1 3 1 6 3.
- <_>
-
- <_>
- 17 14 1 2 -1.
- <_>
- 17 15 1 1 2.
- <_>
-
- <_>
- 4 9 4 3 -1.
- <_>
- 6 9 2 3 2.
- <_>
-
- <_>
- 12 9 3 3 -1.
- <_>
- 12 10 3 1 3.
- <_>
-
- <_>
- 5 9 3 3 -1.
- <_>
- 5 10 3 1 3.
- <_>
-
- <_>
- 9 5 6 8 -1.
- <_>
- 12 5 3 4 2.
- <_>
- 9 9 3 4 2.
- <_>
-
- <_>
- 5 5 6 8 -1.
- <_>
- 5 5 3 4 2.
- <_>
- 8 9 3 4 2.
- <_>
-
- <_>
- 16 1 4 6 -1.
- <_>
- 16 4 4 3 2.
- <_>
-
- <_>
- 1 0 6 20 -1.
- <_>
- 3 0 2 20 3.
- <_>
-
- <_>
- 12 11 3 2 -1.
- <_>
- 13 11 1 2 3.
- <_>
-
- <_>
- 5 11 3 2 -1.
- <_>
- 6 11 1 2 3.
- <_>
-
- <_>
- 9 4 6 1 -1.
- <_>
- 11 4 2 1 3.
- <_>
-
- <_>
- 0 0 8 3 -1.
- <_>
- 4 0 4 3 2.
- <_>
-
- <_>
- 15 0 2 5 -1.
- <_>
- 15 0 1 5 2.
- <_>
-
- <_>
- 4 1 3 2 -1.
- <_>
- 5 1 1 2 3.
- <_>
-
- <_>
- 7 0 6 15 -1.
- <_>
- 9 0 2 15 3.
- <_>
-
- <_>
- 6 11 3 1 -1.
- <_>
- 7 11 1 1 3.
- <_>
-
- <_>
- 12 0 3 4 -1.
- <_>
- 13 0 1 4 3.
- <_>
-
- <_>
- 5 4 6 1 -1.
- <_>
- 7 4 2 1 3.
- <_>
-
- <_>
- 12 7 3 2 -1.
- <_>
- 12 8 3 1 2.
- <_>
-
- <_>
- 0 1 4 6 -1.
- <_>
- 0 4 4 3 2.
- <_>
-
- <_>
- 12 7 3 2 -1.
- <_>
- 12 8 3 1 2.
- <_>
-
- <_>
- 2 16 3 3 -1.
- <_>
- 2 17 3 1 3.
- <_>
-
- <_>
- 13 8 6 10 -1.
- <_>
- 16 8 3 5 2.
- <_>
- 13 13 3 5 2.
- <_>
-
- <_>
- 0 9 5 2 -1.
- <_>
- 0 10 5 1 2.
- <_>
-
- <_>
- 12 11 2 2 -1.
- <_>
- 13 11 1 1 2.
- <_>
- 12 12 1 1 2.
- <_>
-
- <_>
- 3 15 3 3 -1.
- <_>
- 3 16 3 1 3.
- <_>
-
- <_>
- 12 7 3 2 -1.
- <_>
- 12 8 3 1 2.
- <_>
-
- <_>
- 5 7 3 2 -1.
- <_>
- 5 8 3 1 2.
- <_>
-
- <_>
- 9 5 9 9 -1.
- <_>
- 9 8 9 3 3.
- <_>
-
- <_>
- 5 0 3 7 -1.
- <_>
- 6 0 1 7 3.
- <_>
-
- <_>
- 5 2 12 5 -1.
- <_>
- 9 2 4 5 3.
- <_>
-
- <_>
- 6 11 2 2 -1.
- <_>
- 6 11 1 1 2.
- <_>
- 7 12 1 1 2.
- <_>
-
- <_>
- 15 15 3 2 -1.
- <_>
- 15 16 3 1 2.
- <_>
-
- <_>
- 2 15 3 2 -1.
- <_>
- 2 16 3 1 2.
- <_>
-
- <_>
- 14 12 6 8 -1.
- <_>
- 17 12 3 4 2.
- <_>
- 14 16 3 4 2.
- <_>
-
- <_>
- 2 8 15 6 -1.
- <_>
- 7 8 5 6 3.
- <_>
-
- <_>
- 2 2 18 17 -1.
- <_>
- 8 2 6 17 3.
- <_>
-
- <_>
- 5 1 4 1 -1.
- <_>
- 7 1 2 1 2.
- <_>
-
- <_>
- 5 2 12 5 -1.
- <_>
- 9 2 4 5 3.
- <_>
-
- <_>
- 3 2 12 5 -1.
- <_>
- 7 2 4 5 3.
- <_>
-
- <_>
- 4 9 12 4 -1.
- <_>
- 10 9 6 2 2.
- <_>
- 4 11 6 2 2.
- <_>
-
- <_>
- 5 15 6 2 -1.
- <_>
- 5 15 3 1 2.
- <_>
- 8 16 3 1 2.
- <_>
-
- <_>
- 10 14 2 3 -1.
- <_>
- 10 15 2 1 3.
- <_>
-
- <_>
- 0 13 20 2 -1.
- <_>
- 0 13 10 1 2.
- <_>
- 10 14 10 1 2.
- <_>
-
- <_>
- 4 9 12 8 -1.
- <_>
- 10 9 6 4 2.
- <_>
- 4 13 6 4 2.
- <_>
-
- <_>
- 8 13 3 6 -1.
- <_>
- 8 16 3 3 2.
- <_>
-
- <_>
- 10 12 2 2 -1.
- <_>
- 10 13 2 1 2.
- <_>
-
- <_>
- 9 12 2 2 -1.
- <_>
- 9 12 1 1 2.
- <_>
- 10 13 1 1 2.
- <_>
-
- <_>
- 4 11 14 4 -1.
- <_>
- 11 11 7 2 2.
- <_>
- 4 13 7 2 2.
- <_>
-
- <_>
- 8 5 4 2 -1.
- <_>
- 8 6 4 1 2.
- <_>
-
- <_>
- 10 10 6 3 -1.
- <_>
- 12 10 2 3 3.
- <_>
-
- <_>
- 2 14 1 2 -1.
- <_>
- 2 15 1 1 2.
- <_>
-
- <_>
- 13 8 6 12 -1.
- <_>
- 16 8 3 6 2.
- <_>
- 13 14 3 6 2.
- <_>
-
- <_>
- 1 8 6 12 -1.
- <_>
- 1 8 3 6 2.
- <_>
- 4 14 3 6 2.
- <_>
-
- <_>
- 10 0 6 10 -1.
- <_>
- 12 0 2 10 3.
- <_>
-
- <_>
- 5 11 8 4 -1.
- <_>
- 5 11 4 2 2.
- <_>
- 9 13 4 2 2.
- <_>
-
- <_>
- 10 16 8 4 -1.
- <_>
- 14 16 4 2 2.
- <_>
- 10 18 4 2 2.
- <_>
-
- <_>
- 7 7 6 6 -1.
- <_>
- 9 7 2 6 3.
- <_>
-
- <_>
- 10 2 4 10 -1.
- <_>
- 10 2 2 10 2.
- <_>
-
- <_>
- 6 1 4 9 -1.
- <_>
- 8 1 2 9 2.
- <_>
-
- <_>
- 12 19 2 1 -1.
- <_>
- 12 19 1 1 2.
- <_>
-
- <_>
- 1 2 4 9 -1.
- <_>
- 3 2 2 9 2.
- <_>
-
- <_>
- 7 5 6 4 -1.
- <_>
- 9 5 2 4 3.
- <_>
-
- <_>
- 9 4 2 4 -1.
- <_>
- 9 6 2 2 2.
- <_>
-
- <_>
- 14 5 2 8 -1.
- <_>
- 14 9 2 4 2.
- <_>
-
- <_>
- 7 6 5 12 -1.
- <_>
- 7 12 5 6 2.
- <_>
-
- <_>
- 14 6 2 6 -1.
- <_>
- 14 9 2 3 2.
- <_>
-
- <_>
- 4 6 2 6 -1.
- <_>
- 4 9 2 3 2.
- <_>
-
- <_>
- 8 15 10 4 -1.
- <_>
- 13 15 5 2 2.
- <_>
- 8 17 5 2 2.
- <_>
-
- <_>
- 6 18 2 2 -1.
- <_>
- 7 18 1 2 2.
- <_>
-
- <_>
- 11 3 6 2 -1.
- <_>
- 11 4 6 1 2.
- <_>
-
- <_>
- 2 0 16 6 -1.
- <_>
- 2 2 16 2 3.
- <_>
-
- <_>
- 11 3 6 2 -1.
- <_>
- 11 4 6 1 2.
- <_>
-
- <_>
- 4 11 10 3 -1.
- <_>
- 4 12 10 1 3.
- <_>
-
- <_>
- 11 3 6 2 -1.
- <_>
- 11 4 6 1 2.
- <_>
-
- <_>
- 3 3 6 2 -1.
- <_>
- 3 4 6 1 2.
- <_>
-
- <_>
- 16 0 4 7 -1.
- <_>
- 16 0 2 7 2.
- <_>
-
- <_>
- 0 14 9 6 -1.
- <_>
- 0 16 9 2 3.
- <_>
-
- <_>
- 9 16 3 3 -1.
- <_>
- 9 17 3 1 3.
- <_>
-
- <_>
- 4 6 6 2 -1.
- <_>
- 6 6 2 2 3.
- <_>
-
- <_>
- 15 11 1 3 -1.
- <_>
- 15 12 1 1 3.
- <_>
-
- <_>
- 5 5 2 3 -1.
- <_>
- 5 6 2 1 3.
- <_>
-
- <_>
- 10 9 2 2 -1.
- <_>
- 10 10 2 1 2.
- <_>
-
- <_>
- 3 1 4 3 -1.
- <_>
- 5 1 2 3 2.
- <_>
-
- <_>
- 16 0 4 7 -1.
- <_>
- 16 0 2 7 2.
- <_>
-
- <_>
- 0 0 20 1 -1.
- <_>
- 10 0 10 1 2.
- <_>
-
- <_>
- 15 11 1 3 -1.
- <_>
- 15 12 1 1 3.
- <_>
-
- <_>
- 0 4 3 4 -1.
- <_>
- 1 4 1 4 3.
- <_>
-
- <_>
- 16 3 3 6 -1.
- <_>
- 16 5 3 2 3.
- <_>
-
- <_>
- 1 3 3 6 -1.
- <_>
- 1 5 3 2 3.
- <_>
-
- <_>
- 6 2 12 6 -1.
- <_>
- 12 2 6 3 2.
- <_>
- 6 5 6 3 2.
- <_>
-
- <_>
- 8 10 4 3 -1.
- <_>
- 8 11 4 1 3.
- <_>
-
- <_>
- 4 2 14 6 -1.
- <_>
- 11 2 7 3 2.
- <_>
- 4 5 7 3 2.
- <_>
-
- <_>
- 9 11 2 3 -1.
- <_>
- 9 12 2 1 3.
- <_>
-
- <_>
- 15 13 2 3 -1.
- <_>
- 15 14 2 1 3.
- <_>
-
- <_>
- 8 12 4 3 -1.
- <_>
- 8 13 4 1 3.
- <_>
-
- <_>
- 15 11 1 3 -1.
- <_>
- 15 12 1 1 3.
- <_>
-
- <_>
- 7 13 5 2 -1.
- <_>
- 7 14 5 1 2.
- <_>
-
- <_>
- 7 12 6 3 -1.
- <_>
- 7 13 6 1 3.
- <_>
-
- <_>
- 5 11 4 4 -1.
- <_>
- 5 13 4 2 2.
- <_>
-
- <_>
- 11 4 3 3 -1.
- <_>
- 12 4 1 3 3.
- <_>
-
- <_>
- 6 4 3 3 -1.
- <_>
- 7 4 1 3 3.
- <_>
-
- <_>
- 16 5 3 6 -1.
- <_>
- 17 5 1 6 3.
- <_>
-
- <_>
- 3 6 12 7 -1.
- <_>
- 7 6 4 7 3.
- <_>
-
- <_>
- 16 5 3 6 -1.
- <_>
- 17 5 1 6 3.
- <_>
-
- <_>
- 3 13 2 3 -1.
- <_>
- 3 14 2 1 3.
- <_>
-
- <_>
- 16 5 3 6 -1.
- <_>
- 17 5 1 6 3.
- <_>
-
- <_>
- 1 5 3 6 -1.
- <_>
- 2 5 1 6 3.
- <_>
-
- <_>
- 1 9 18 1 -1.
- <_>
- 7 9 6 1 3.
- <_>
-
- <_>
- 0 9 8 7 -1.
- <_>
- 4 9 4 7 2.
- <_>
-
- <_>
- 12 11 8 2 -1.
- <_>
- 12 12 8 1 2.
- <_>
-
- <_>
- 0 11 8 2 -1.
- <_>
- 0 12 8 1 2.
- <_>
-
- <_>
- 9 13 2 3 -1.
- <_>
- 9 14 2 1 3.
- <_>
-
- <_>
- 4 10 12 4 -1.
- <_>
- 4 10 6 2 2.
- <_>
- 10 12 6 2 2.
- <_>
-
- <_>
- 9 3 3 7 -1.
- <_>
- 10 3 1 7 3.
- <_>
-
- <_>
- 7 2 3 5 -1.
- <_>
- 8 2 1 5 3.
- <_>
-
- <_>
- 9 12 4 6 -1.
- <_>
- 11 12 2 3 2.
- <_>
- 9 15 2 3 2.
- <_>
-
- <_>
- 8 7 3 6 -1.
- <_>
- 9 7 1 6 3.
- <_>
-
- <_>
- 15 4 4 2 -1.
- <_>
- 15 5 4 1 2.
- <_>
-
- <_>
- 8 7 3 3 -1.
- <_>
- 9 7 1 3 3.
- <_>
-
- <_>
- 14 2 6 4 -1.
- <_>
- 14 4 6 2 2.
- <_>
-
- <_>
- 7 16 6 1 -1.
- <_>
- 9 16 2 1 3.
- <_>
-
- <_>
- 15 13 2 3 -1.
- <_>
- 15 14 2 1 3.
- <_>
-
- <_>
- 8 7 3 10 -1.
- <_>
- 9 7 1 10 3.
- <_>
-
- <_>
- 11 10 2 6 -1.
- <_>
- 11 12 2 2 3.
- <_>
-
- <_>
- 6 10 4 1 -1.
- <_>
- 8 10 2 1 2.
- <_>
-
- <_>
- 10 9 2 2 -1.
- <_>
- 10 10 2 1 2.
- <_>
-
- <_>
- 8 9 2 2 -1.
- <_>
- 8 10 2 1 2.
- <_>
-
- <_>
- 12 7 2 2 -1.
- <_>
- 13 7 1 1 2.
- <_>
- 12 8 1 1 2.
- <_>
-
- <_>
- 5 7 2 2 -1.
- <_>
- 5 7 1 1 2.
- <_>
- 6 8 1 1 2.
- <_>
-
- <_>
- 13 0 3 14 -1.
- <_>
- 14 0 1 14 3.
- <_>
-
- <_>
- 4 0 3 14 -1.
- <_>
- 5 0 1 14 3.
- <_>
-
- <_>
- 13 4 3 14 -1.
- <_>
- 14 4 1 14 3.
- <_>
-
- <_>
- 9 14 2 3 -1.
- <_>
- 9 15 2 1 3.
- <_>
-
- <_>
- 8 14 4 3 -1.
- <_>
- 8 15 4 1 3.
- <_>
-
- <_>
- 4 2 3 16 -1.
- <_>
- 5 2 1 16 3.
- <_>
-
- <_>
- 7 2 8 10 -1.
- <_>
- 7 7 8 5 2.
- <_>
-
- <_>
- 6 14 7 3 -1.
- <_>
- 6 15 7 1 3.
- <_>
-
- <_>
- 9 2 10 12 -1.
- <_>
- 14 2 5 6 2.
- <_>
- 9 8 5 6 2.
- <_>
-
- <_>
- 6 7 8 2 -1.
- <_>
- 6 8 8 1 2.
- <_>
-
- <_>
- 8 13 4 6 -1.
- <_>
- 8 16 4 3 2.
- <_>
-
- <_>
- 6 6 1 3 -1.
- <_>
- 6 7 1 1 3.
- <_>
-
- <_>
- 16 2 4 6 -1.
- <_>
- 16 4 4 2 3.
- <_>
-
- <_>
- 6 6 4 2 -1.
- <_>
- 6 6 2 1 2.
- <_>
- 8 7 2 1 2.
- <_>
-
- <_>
- 16 2 4 6 -1.
- <_>
- 16 4 4 2 3.
- <_>
-
- <_>
- 0 2 4 6 -1.
- <_>
- 0 4 4 2 3.
- <_>
-
- <_>
- 9 6 2 6 -1.
- <_>
- 9 6 1 6 2.
- <_>
-
- <_>
- 3 4 6 10 -1.
- <_>
- 3 9 6 5 2.
- <_>
-
- <_>
- 9 5 2 6 -1.
- <_>
- 9 5 1 6 2.
- <_>
-
- <_>
- 3 13 2 3 -1.
- <_>
- 3 14 2 1 3.
- <_>
-
- <_>
- 13 13 3 2 -1.
- <_>
- 13 14 3 1 2.
- <_>
-
- <_>
- 2 16 10 4 -1.
- <_>
- 2 16 5 2 2.
- <_>
- 7 18 5 2 2.
- <_>
-
- <_>
- 5 6 10 6 -1.
- <_>
- 10 6 5 3 2.
- <_>
- 5 9 5 3 2.
- <_>
-
- <_>
- 7 14 1 3 -1.
- <_>
- 7 15 1 1 3.
- <_>
-
- <_>
- 14 16 6 3 -1.
- <_>
- 14 17 6 1 3.
- <_>
-
- <_>
- 5 4 3 3 -1.
- <_>
- 5 5 3 1 3.
- <_>
-
- <_>
- 7 4 10 3 -1.
- <_>
- 7 5 10 1 3.
- <_>
-
- <_>
- 0 4 5 4 -1.
- <_>
- 0 6 5 2 2.
- <_>
-
- <_>
- 13 11 3 9 -1.
- <_>
- 13 14 3 3 3.
- <_>
-
- <_>
- 4 11 3 9 -1.
- <_>
- 4 14 3 3 3.
- <_>
-
- <_>
- 9 7 2 1 -1.
- <_>
- 9 7 1 1 2.
- <_>
-
- <_>
- 5 0 6 17 -1.
- <_>
- 7 0 2 17 3.
- <_>
-
- <_>
- 10 3 6 3 -1.
- <_>
- 10 3 3 3 2.
- <_>
-
- <_>
- 2 2 15 4 -1.
- <_>
- 7 2 5 4 3.
- <_>
-
- <_>
- 8 2 8 2 -1.
- <_>
- 12 2 4 1 2.
- <_>
- 8 3 4 1 2.
- <_>
-
- <_>
- 8 1 3 6 -1.
- <_>
- 8 3 3 2 3.
- <_>
-
- <_>
- 9 17 2 2 -1.
- <_>
- 9 18 2 1 2.
- <_>
-
- <_>
- 0 0 2 14 -1.
- <_>
- 1 0 1 14 2.
- <_>
-
- <_>
- 12 0 7 3 -1.
- <_>
- 12 1 7 1 3.
- <_>
-
- <_>
- 1 14 1 2 -1.
- <_>
- 1 15 1 1 2.
- <_>
-
- <_>
- 14 12 2 8 -1.
- <_>
- 15 12 1 4 2.
- <_>
- 14 16 1 4 2.
- <_>
-
- <_>
- 1 0 7 3 -1.
- <_>
- 1 1 7 1 3.
- <_>
-
- <_>
- 14 12 2 8 -1.
- <_>
- 15 12 1 4 2.
- <_>
- 14 16 1 4 2.
- <_>
-
- <_>
- 6 0 8 12 -1.
- <_>
- 6 0 4 6 2.
- <_>
- 10 6 4 6 2.
- <_>
-
- <_>
- 6 1 8 9 -1.
- <_>
- 6 4 8 3 3.
- <_>
-
- <_>
- 5 2 2 2 -1.
- <_>
- 5 3 2 1 2.
- <_>
-
- <_>
- 13 14 6 6 -1.
- <_>
- 16 14 3 3 2.
- <_>
- 13 17 3 3 2.
- <_>
-
- <_>
- 0 17 20 2 -1.
- <_>
- 0 17 10 1 2.
- <_>
- 10 18 10 1 2.
- <_>
-
- <_>
- 10 3 2 6 -1.
- <_>
- 11 3 1 3 2.
- <_>
- 10 6 1 3 2.
- <_>
-
- <_>
- 5 12 6 2 -1.
- <_>
- 8 12 3 2 2.
- <_>
-
- <_>
- 10 7 6 13 -1.
- <_>
- 10 7 3 13 2.
- <_>
-
- <_>
- 5 15 10 5 -1.
- <_>
- 10 15 5 5 2.
- <_>
-
- <_>
- 10 4 4 10 -1.
- <_>
- 10 4 2 10 2.
- <_>
-
- <_>
- 5 7 2 1 -1.
- <_>
- 6 7 1 1 2.
- <_>
-
- <_>
- 10 3 6 7 -1.
- <_>
- 10 3 3 7 2.
- <_>
-
- <_>
- 4 3 6 7 -1.
- <_>
- 7 3 3 7 2.
- <_>
-
- <_>
- 1 7 18 5 -1.
- <_>
- 7 7 6 5 3.
- <_>
-
- <_>
- 3 17 4 3 -1.
- <_>
- 5 17 2 3 2.
- <_>
-
- <_>
- 8 14 12 6 -1.
- <_>
- 14 14 6 3 2.
- <_>
- 8 17 6 3 2.
- <_>
-
- <_>
- 0 13 20 4 -1.
- <_>
- 0 13 10 2 2.
- <_>
- 10 15 10 2 2.
- <_>
-
- <_>
- 4 5 14 2 -1.
- <_>
- 11 5 7 1 2.
- <_>
- 4 6 7 1 2.
- <_>
-
- <_>
- 1 2 10 12 -1.
- <_>
- 1 2 5 6 2.
- <_>
- 6 8 5 6 2.
- <_>
-
- <_>
- 6 1 14 3 -1.
- <_>
- 6 2 14 1 3.
- <_>
-
- <_>
- 8 16 2 3 -1.
- <_>
- 8 17 2 1 3.
- <_>
-
- <_>
- 9 17 3 2 -1.
- <_>
- 10 17 1 2 3.
- <_>
-
- <_>
- 5 15 4 2 -1.
- <_>
- 5 15 2 1 2.
- <_>
- 7 16 2 1 2.
- <_>
-
- <_>
- 10 15 1 3 -1.
- <_>
- 10 16 1 1 3.
- <_>
-
- <_>
- 8 16 4 4 -1.
- <_>
- 8 16 2 2 2.
- <_>
- 10 18 2 2 2.
- <_>
-
- <_>
- 6 11 8 6 -1.
- <_>
- 6 14 8 3 2.
- <_>
-
- <_>
- 2 13 5 2 -1.
- <_>
- 2 14 5 1 2.
- <_>
-
- <_>
- 13 14 6 6 -1.
- <_>
- 16 14 3 3 2.
- <_>
- 13 17 3 3 2.
- <_>
-
- <_>
- 1 9 18 4 -1.
- <_>
- 7 9 6 4 3.
- <_>
-
- <_>
- 13 14 6 6 -1.
- <_>
- 16 14 3 3 2.
- <_>
- 13 17 3 3 2.
- <_>
-
- <_>
- 0 2 1 6 -1.
- <_>
- 0 4 1 2 3.
- <_>
-
- <_>
- 5 0 15 20 -1.
- <_>
- 5 10 15 10 2.
- <_>
-
- <_>
- 1 14 6 6 -1.
- <_>
- 1 14 3 3 2.
- <_>
- 4 17 3 3 2.
- <_>
-
- <_>
- 8 14 4 6 -1.
- <_>
- 10 14 2 3 2.
- <_>
- 8 17 2 3 2.
- <_>
-
- <_>
- 7 11 2 1 -1.
- <_>
- 8 11 1 1 2.
- <_>
-
- <_>
- 9 17 3 2 -1.
- <_>
- 10 17 1 2 3.
- <_>
-
- <_>
- 8 17 3 2 -1.
- <_>
- 9 17 1 2 3.
- <_>
-
- <_>
- 12 14 4 6 -1.
- <_>
- 14 14 2 3 2.
- <_>
- 12 17 2 3 2.
- <_>
-
- <_>
- 4 14 4 6 -1.
- <_>
- 4 14 2 3 2.
- <_>
- 6 17 2 3 2.
- <_>
-
- <_>
- 13 14 2 6 -1.
- <_>
- 14 14 1 3 2.
- <_>
- 13 17 1 3 2.
- <_>
-
- <_>
- 5 14 2 6 -1.
- <_>
- 5 14 1 3 2.
- <_>
- 6 17 1 3 2.
- <_>
-
- <_>
- 7 0 6 12 -1.
- <_>
- 7 4 6 4 3.
- <_>
-
- <_>
- 0 7 12 2 -1.
- <_>
- 4 7 4 2 3.
- <_>
-
- <_>
- 10 3 3 13 -1.
- <_>
- 11 3 1 13 3.
- <_>
-
- <_>
- 7 3 3 13 -1.
- <_>
- 8 3 1 13 3.
- <_>
-
- <_>
- 10 8 6 3 -1.
- <_>
- 10 9 6 1 3.
- <_>
-
- <_>
- 3 11 3 2 -1.
- <_>
- 4 11 1 2 3.
- <_>
-
- <_>
- 13 12 6 8 -1.
- <_>
- 16 12 3 4 2.
- <_>
- 13 16 3 4 2.
- <_>
-
- <_>
- 7 6 6 5 -1.
- <_>
- 9 6 2 5 3.
- <_>
-
- <_>
- 17 11 2 7 -1.
- <_>
- 17 11 1 7 2.
- <_>
-
- <_>
- 3 13 8 2 -1.
- <_>
- 7 13 4 2 2.
- <_>
-
- <_>
- 6 9 8 3 -1.
- <_>
- 6 10 8 1 3.
- <_>
-
- <_>
- 4 3 4 3 -1.
- <_>
- 4 4 4 1 3.
- <_>
-
- <_>
- 11 3 4 3 -1.
- <_>
- 11 4 4 1 3.
- <_>
-
- <_>
- 1 4 17 12 -1.
- <_>
- 1 8 17 4 3.
- <_>
-
- <_>
- 11 3 4 3 -1.
- <_>
- 11 4 4 1 3.
- <_>
-
- <_>
- 4 8 6 3 -1.
- <_>
- 4 9 6 1 3.
- <_>
-
- <_>
- 12 3 5 3 -1.
- <_>
- 12 4 5 1 3.
- <_>
-
- <_>
- 1 11 2 7 -1.
- <_>
- 2 11 1 7 2.
- <_>
-
- <_>
- 15 12 2 8 -1.
- <_>
- 16 12 1 4 2.
- <_>
- 15 16 1 4 2.
- <_>
-
- <_>
- 4 8 11 3 -1.
- <_>
- 4 9 11 1 3.
- <_>
-
- <_>
- 9 13 6 2 -1.
- <_>
- 12 13 3 1 2.
- <_>
- 9 14 3 1 2.
- <_>
-
- <_>
- 6 13 4 3 -1.
- <_>
- 6 14 4 1 3.
- <_>
-
- <_>
- 9 12 3 3 -1.
- <_>
- 10 12 1 3 3.
- <_>
-
- <_>
- 5 3 3 3 -1.
- <_>
- 5 4 3 1 3.
- <_>
-
- <_>
- 9 4 2 3 -1.
- <_>
- 9 5 2 1 3.
- <_>
-
- <_>
- 0 2 16 3 -1.
- <_>
- 0 3 16 1 3.
- <_>
-
- <_>
- 15 12 2 8 -1.
- <_>
- 16 12 1 4 2.
- <_>
- 15 16 1 4 2.
- <_>
-
- <_>
- 3 12 2 8 -1.
- <_>
- 3 12 1 4 2.
- <_>
- 4 16 1 4 2.
- <_>
-
- <_>
- 14 13 3 6 -1.
- <_>
- 14 15 3 2 3.
- <_>
-
- <_>
- 3 13 3 6 -1.
- <_>
- 3 15 3 2 3.
- <_>
-
- <_>
- 6 5 10 2 -1.
- <_>
- 11 5 5 1 2.
- <_>
- 6 6 5 1 2.
- <_>
-
- <_>
- 2 14 14 6 -1.
- <_>
- 2 17 14 3 2.
- <_>
-
- <_>
- 10 14 1 3 -1.
- <_>
- 10 15 1 1 3.
- <_>
-
- <_>
- 4 16 2 2 -1.
- <_>
- 4 16 1 1 2.
- <_>
- 5 17 1 1 2.
- <_>
-
- <_>
- 10 6 2 3 -1.
- <_>
- 10 7 2 1 3.
- <_>
-
- <_>
- 0 17 20 2 -1.
- <_>
- 0 17 10 1 2.
- <_>
- 10 18 10 1 2.
- <_>
-
- <_>
- 13 6 1 3 -1.
- <_>
- 13 7 1 1 3.
- <_>
-
- <_>
- 8 13 3 2 -1.
- <_>
- 9 13 1 2 3.
- <_>
-
- <_>
- 12 2 3 3 -1.
- <_>
- 13 2 1 3 3.
- <_>
-
- <_>
- 3 18 2 2 -1.
- <_>
- 3 18 1 1 2.
- <_>
- 4 19 1 1 2.
- <_>
-
- <_>
- 9 16 3 4 -1.
- <_>
- 10 16 1 4 3.
- <_>
-
- <_>
- 6 6 1 3 -1.
- <_>
- 6 7 1 1 3.
- <_>
-
- <_>
- 13 1 5 2 -1.
- <_>
- 13 2 5 1 2.
- <_>
-
- <_>
- 7 14 6 2 -1.
- <_>
- 7 14 3 1 2.
- <_>
- 10 15 3 1 2.
- <_>
-
- <_>
- 11 3 3 4 -1.
- <_>
- 12 3 1 4 3.
- <_>
-
- <_>
- 1 13 12 6 -1.
- <_>
- 5 13 4 6 3.
- <_>
-
- <_>
- 14 11 5 2 -1.
- <_>
- 14 12 5 1 2.
- <_>
-
- <_>
- 2 15 14 4 -1.
- <_>
- 2 15 7 2 2.
- <_>
- 9 17 7 2 2.
- <_>
-
- <_>
- 3 7 14 2 -1.
- <_>
- 10 7 7 1 2.
- <_>
- 3 8 7 1 2.
- <_>
-
- <_>
- 1 11 4 2 -1.
- <_>
- 1 12 4 1 2.
- <_>
-
- <_>
- 14 0 6 14 -1.
- <_>
- 16 0 2 14 3.
- <_>
-
- <_>
- 4 11 1 3 -1.
- <_>
- 4 12 1 1 3.
- <_>
-
- <_>
- 14 0 6 14 -1.
- <_>
- 16 0 2 14 3.
- <_>
-
- <_>
- 1 10 3 7 -1.
- <_>
- 2 10 1 7 3.
- <_>
-
- <_>
- 8 12 9 2 -1.
- <_>
- 8 13 9 1 2.
- <_>
-
- <_>
- 0 6 20 1 -1.
- <_>
- 10 6 10 1 2.
- <_>
-
- <_>
- 8 4 4 4 -1.
- <_>
- 8 4 2 4 2.
- <_>
-
- <_>
- 0 0 2 2 -1.
- <_>
- 0 1 2 1 2.
- <_>
-
- <_>
- 5 3 10 9 -1.
- <_>
- 5 6 10 3 3.
- <_>
-
- <_>
- 15 2 4 10 -1.
- <_>
- 15 2 2 10 2.
- <_>
-
- <_>
- 8 2 2 7 -1.
- <_>
- 9 2 1 7 2.
- <_>
-
- <_>
- 7 4 12 1 -1.
- <_>
- 11 4 4 1 3.
- <_>
-
- <_>
- 3 4 9 1 -1.
- <_>
- 6 4 3 1 3.
- <_>
-
- <_>
- 15 10 1 4 -1.
- <_>
- 15 12 1 2 2.
- <_>
-
- <_>
- 4 10 6 4 -1.
- <_>
- 7 10 3 4 2.
- <_>
-
- <_>
- 15 9 1 6 -1.
- <_>
- 15 12 1 3 2.
- <_>
-
- <_>
- 7 17 6 3 -1.
- <_>
- 7 18 6 1 3.
- <_>
-
- <_>
- 14 3 2 16 -1.
- <_>
- 15 3 1 8 2.
- <_>
- 14 11 1 8 2.
- <_>
-
- <_>
- 4 9 1 6 -1.
- <_>
- 4 12 1 3 2.
- <_>
-
- <_>
- 12 1 5 2 -1.
- <_>
- 12 2 5 1 2.
- <_>
-
- <_>
- 6 18 4 2 -1.
- <_>
- 6 18 2 1 2.
- <_>
- 8 19 2 1 2.
- <_>
-
- <_>
- 2 4 16 10 -1.
- <_>
- 10 4 8 5 2.
- <_>
- 2 9 8 5 2.
- <_>
-
- <_>
- 6 5 1 10 -1.
- <_>
- 6 10 1 5 2.
- <_>
-
- <_>
- 4 8 15 2 -1.
- <_>
- 9 8 5 2 3.
- <_>
-
- <_>
- 1 8 15 2 -1.
- <_>
- 6 8 5 2 3.
- <_>
-
- <_>
- 9 5 3 6 -1.
- <_>
- 9 7 3 2 3.
- <_>
-
- <_>
- 5 7 8 2 -1.
- <_>
- 9 7 4 2 2.
- <_>
-
- <_>
- 9 11 2 3 -1.
- <_>
- 9 12 2 1 3.
- <_>
-
- <_>
- 1 0 16 3 -1.
- <_>
- 1 1 16 1 3.
- <_>
-
- <_>
- 11 2 7 2 -1.
- <_>
- 11 3 7 1 2.
- <_>
-
- <_>
- 5 1 10 18 -1.
- <_>
- 5 7 10 6 3.
- <_>
-
- <_>
- 17 4 3 2 -1.
- <_>
- 18 4 1 2 3.
- <_>
-
- <_>
- 8 13 1 3 -1.
- <_>
- 8 14 1 1 3.
- <_>
-
- <_>
- 3 14 14 6 -1.
- <_>
- 3 16 14 2 3.
- <_>
-
- <_>
- 0 2 3 4 -1.
- <_>
- 1 2 1 4 3.
- <_>
-
- <_>
- 12 1 5 2 -1.
- <_>
- 12 2 5 1 2.
- <_>
-
- <_>
- 3 1 5 2 -1.
- <_>
- 3 2 5 1 2.
- <_>
-
- <_>
- 10 13 2 3 -1.
- <_>
- 10 14 2 1 3.
- <_>
-
- <_>
- 8 13 2 3 -1.
- <_>
- 8 14 2 1 3.
- <_>
-
- <_>
- 14 12 2 3 -1.
- <_>
- 14 13 2 1 3.
- <_>
-
- <_>
- 7 2 2 3 -1.
- <_>
- 7 3 2 1 3.
- <_>
-
- <_>
- 5 6 10 4 -1.
- <_>
- 10 6 5 2 2.
- <_>
- 5 8 5 2 2.
- <_>
-
- <_>
- 9 13 1 6 -1.
- <_>
- 9 16 1 3 2.
- <_>
-
- <_>
- 10 12 2 2 -1.
- <_>
- 11 12 1 1 2.
- <_>
- 10 13 1 1 2.
- <_>
-
- <_>
- 4 12 2 3 -1.
- <_>
- 4 13 2 1 3.
- <_>
-
- <_>
- 14 4 6 6 -1.
- <_>
- 14 6 6 2 3.
- <_>
-
- <_>
- 8 17 2 3 -1.
- <_>
- 8 18 2 1 3.
- <_>
-
- <_>
- 16 4 4 6 -1.
- <_>
- 16 6 4 2 3.
- <_>
-
- <_>
- 0 4 4 6 -1.
- <_>
- 0 6 4 2 3.
- <_>
-
- <_>
- 14 6 2 3 -1.
- <_>
- 14 6 1 3 2.
- <_>
-
- <_>
- 4 9 8 1 -1.
- <_>
- 8 9 4 1 2.
- <_>
-
- <_>
- 8 12 4 3 -1.
- <_>
- 8 13 4 1 3.
- <_>
-
- <_>
- 5 12 10 6 -1.
- <_>
- 5 14 10 2 3.
- <_>
-
- <_>
- 11 12 1 2 -1.
- <_>
- 11 13 1 1 2.
- <_>
-
- <_>
- 8 15 4 2 -1.
- <_>
- 8 16 4 1 2.
- <_>
-
- <_>
- 6 9 8 8 -1.
- <_>
- 10 9 4 4 2.
- <_>
- 6 13 4 4 2.
- <_>
-
- <_>
- 7 12 4 6 -1.
- <_>
- 7 12 2 3 2.
- <_>
- 9 15 2 3 2.
- <_>
-
- <_>
- 10 11 3 1 -1.
- <_>
- 11 11 1 1 3.
- <_>
-
- <_>
- 9 7 2 10 -1.
- <_>
- 9 7 1 5 2.
- <_>
- 10 12 1 5 2.
- <_>
-
- <_>
- 8 0 6 6 -1.
- <_>
- 10 0 2 6 3.
- <_>
-
- <_>
- 3 11 2 6 -1.
- <_>
- 3 13 2 2 3.
- <_>
-
- <_>
- 16 12 1 2 -1.
- <_>
- 16 13 1 1 2.
- <_>
-
- <_>
- 1 14 6 6 -1.
- <_>
- 1 14 3 3 2.
- <_>
- 4 17 3 3 2.
- <_>
-
- <_>
- 13 1 3 6 -1.
- <_>
- 14 1 1 6 3.
- <_>
-
- <_>
- 8 8 2 2 -1.
- <_>
- 8 9 2 1 2.
- <_>
-
- <_>
- 9 9 3 3 -1.
- <_>
- 10 9 1 3 3.
- <_>
-
- <_>
- 8 7 3 3 -1.
- <_>
- 8 8 3 1 3.
- <_>
-
- <_>
- 14 0 2 3 -1.
- <_>
- 14 0 1 3 2.
- <_>
-
- <_>
- 1 0 18 9 -1.
- <_>
- 7 0 6 9 3.
- <_>
-
- <_>
- 11 5 4 15 -1.
- <_>
- 11 5 2 15 2.
- <_>
-
- <_>
- 5 5 4 15 -1.
- <_>
- 7 5 2 15 2.
- <_>
-
- <_>
- 14 0 2 3 -1.
- <_>
- 14 0 1 3 2.
- <_>
-
- <_>
- 4 0 2 3 -1.
- <_>
- 5 0 1 3 2.
- <_>
-
- <_>
- 11 12 2 2 -1.
- <_>
- 12 12 1 1 2.
- <_>
- 11 13 1 1 2.
- <_>
-
- <_>
- 7 12 2 2 -1.
- <_>
- 7 12 1 1 2.
- <_>
- 8 13 1 1 2.
- <_>
-
- <_>
- 12 0 3 4 -1.
- <_>
- 13 0 1 4 3.
- <_>
-
- <_>
- 4 11 3 3 -1.
- <_>
- 4 12 3 1 3.
- <_>
-
- <_>
- 12 7 4 2 -1.
- <_>
- 12 8 4 1 2.
- <_>
-
- <_>
- 8 10 3 2 -1.
- <_>
- 9 10 1 2 3.
- <_>
-
- <_>
- 9 9 3 2 -1.
- <_>
- 10 9 1 2 3.
- <_>
-
- <_>
- 8 9 3 2 -1.
- <_>
- 9 9 1 2 3.
- <_>
-
- <_>
- 12 0 3 4 -1.
- <_>
- 13 0 1 4 3.
- <_>
-
- <_>
- 5 0 3 4 -1.
- <_>
- 6 0 1 4 3.
- <_>
-
- <_>
- 4 14 12 4 -1.
- <_>
- 10 14 6 2 2.
- <_>
- 4 16 6 2 2.
- <_>
-
- <_>
- 8 13 2 3 -1.
- <_>
- 8 14 2 1 3.
- <_>
-
- <_>
- 10 10 3 8 -1.
- <_>
- 10 14 3 4 2.
- <_>
-
- <_>
- 8 10 4 8 -1.
- <_>
- 8 10 2 4 2.
- <_>
- 10 14 2 4 2.
- <_>
-
- <_>
- 10 8 3 1 -1.
- <_>
- 11 8 1 1 3.
- <_>
-
- <_>
- 9 12 1 6 -1.
- <_>
- 9 15 1 3 2.
- <_>
-
- <_>
- 10 8 3 1 -1.
- <_>
- 11 8 1 1 3.
- <_>
-
- <_>
- 7 8 3 1 -1.
- <_>
- 8 8 1 1 3.
- <_>
-
- <_>
- 5 2 15 14 -1.
- <_>
- 5 9 15 7 2.
- <_>
-
- <_>
- 2 1 2 10 -1.
- <_>
- 2 1 1 5 2.
- <_>
- 3 6 1 5 2.
- <_>
-
- <_>
- 14 14 2 3 -1.
- <_>
- 14 15 2 1 3.
- <_>
-
- <_>
- 2 7 3 3 -1.
- <_>
- 3 7 1 3 3.
- <_>
-
- <_>
- 17 4 3 3 -1.
- <_>
- 17 5 3 1 3.
- <_>
-
- <_>
- 0 4 3 3 -1.
- <_>
- 0 5 3 1 3.
- <_>
-
- <_>
- 13 5 6 2 -1.
- <_>
- 16 5 3 1 2.
- <_>
- 13 6 3 1 2.
- <_>
-
- <_>
- 4 19 12 1 -1.
- <_>
- 8 19 4 1 3.
- <_>
-
- <_>
- 12 12 2 4 -1.
- <_>
- 12 14 2 2 2.
- <_>
-
- <_>
- 3 15 1 3 -1.
- <_>
- 3 16 1 1 3.
- <_>
-
- <_>
- 11 16 6 4 -1.
- <_>
- 11 16 3 4 2.
- <_>
-
- <_>
- 2 10 3 10 -1.
- <_>
- 3 10 1 10 3.
- <_>
-
- <_>
- 12 8 2 4 -1.
- <_>
- 12 8 1 4 2.
- <_>
-
- <_>
- 6 8 2 4 -1.
- <_>
- 7 8 1 4 2.
- <_>
-
- <_>
- 10 14 2 3 -1.
- <_>
- 10 14 1 3 2.
- <_>
-
- <_>
- 5 1 10 3 -1.
- <_>
- 10 1 5 3 2.
- <_>
-
- <_>
- 10 7 3 2 -1.
- <_>
- 11 7 1 2 3.
- <_>
-
- <_>
- 5 6 9 2 -1.
- <_>
- 8 6 3 2 3.
- <_>
-
- <_>
- 9 8 2 2 -1.
- <_>
- 9 9 2 1 2.
- <_>
-
- <_>
- 2 11 16 6 -1.
- <_>
- 2 11 8 3 2.
- <_>
- 10 14 8 3 2.
- <_>
-
- <_>
- 12 7 2 2 -1.
- <_>
- 13 7 1 1 2.
- <_>
- 12 8 1 1 2.
- <_>
-
- <_>
- 9 5 2 3 -1.
- <_>
- 9 6 2 1 3.
- <_>
-
- <_>
- 9 7 3 2 -1.
- <_>
- 10 7 1 2 3.
- <_>
-
- <_>
- 5 1 8 12 -1.
- <_>
- 5 7 8 6 2.
- <_>
-
- <_>
- 13 5 2 2 -1.
- <_>
- 13 6 2 1 2.
- <_>
-
- <_>
- 5 5 2 2 -1.
- <_>
- 5 6 2 1 2.
- <_>
-
- <_>
- 12 4 3 3 -1.
- <_>
- 12 5 3 1 3.
- <_>
-
- <_>
- 4 14 2 3 -1.
- <_>
- 4 15 2 1 3.
- <_>
-
- <_>
- 12 4 3 3 -1.
- <_>
- 12 5 3 1 3.
- <_>
-
- <_>
- 5 4 3 3 -1.
- <_>
- 5 5 3 1 3.
- <_>
-
- <_>
- 9 14 2 6 -1.
- <_>
- 10 14 1 3 2.
- <_>
- 9 17 1 3 2.
- <_>
-
- <_>
- 8 14 3 2 -1.
- <_>
- 9 14 1 2 3.
- <_>
-
- <_>
- 9 5 6 6 -1.
- <_>
- 11 5 2 6 3.
- <_>
-
- <_>
- 5 5 6 6 -1.
- <_>
- 7 5 2 6 3.
- <_>
-
- <_>
- 13 13 1 2 -1.
- <_>
- 13 14 1 1 2.
- <_>
-
- <_>
- 0 2 10 2 -1.
- <_>
- 0 3 10 1 2.
- <_>
-
- <_>
- 13 13 1 2 -1.
- <_>
- 13 14 1 1 2.
- <_>
-
- <_>
- 5 7 2 2 -1.
- <_>
- 5 7 1 1 2.
- <_>
- 6 8 1 1 2.
- <_>
-
- <_>
- 13 5 2 7 -1.
- <_>
- 13 5 1 7 2.
- <_>
-
- <_>
- 6 13 1 2 -1.
- <_>
- 6 14 1 1 2.
- <_>
-
- <_>
- 11 0 3 7 -1.
- <_>
- 12 0 1 7 3.
- <_>
-
- <_>
- 0 3 2 16 -1.
- <_>
- 0 3 1 8 2.
- <_>
- 1 11 1 8 2.
- <_>
-
- <_>
- 11 0 3 7 -1.
- <_>
- 12 0 1 7 3.
- <_>
-
- <_>
- 6 0 3 7 -1.
- <_>
- 7 0 1 7 3.
- <_>
-
- <_>
- 11 16 8 4 -1.
- <_>
- 11 16 4 4 2.
- <_>
-
- <_>
- 1 16 8 4 -1.
- <_>
- 5 16 4 4 2.
- <_>
-
- <_>
- 13 5 2 7 -1.
- <_>
- 13 5 1 7 2.
- <_>
-
- <_>
- 5 5 2 7 -1.
- <_>
- 6 5 1 7 2.
- <_>
-
- <_>
- 18 6 2 14 -1.
- <_>
- 18 13 2 7 2.
- <_>
-
- <_>
- 6 10 3 4 -1.
- <_>
- 6 12 3 2 2.
- <_>
-
- <_>
- 14 7 1 2 -1.
- <_>
- 14 8 1 1 2.
- <_>
-
- <_>
- 0 1 18 6 -1.
- <_>
- 0 1 9 3 2.
- <_>
- 9 4 9 3 2.
- <_>
-
- <_>
- 14 7 1 2 -1.
- <_>
- 14 8 1 1 2.
- <_>
-
- <_>
- 0 6 2 14 -1.
- <_>
- 0 13 2 7 2.
- <_>
-
- <_>
- 17 0 3 12 -1.
- <_>
- 18 0 1 12 3.
- <_>
-
- <_>
- 0 6 18 3 -1.
- <_>
- 0 7 18 1 3.
- <_>
-
- <_>
- 6 0 14 16 -1.
- <_>
- 6 8 14 8 2.
- <_>
-
- <_>
- 0 0 3 12 -1.
- <_>
- 1 0 1 12 3.
- <_>
-
- <_>
- 13 0 3 7 -1.
- <_>
- 14 0 1 7 3.
- <_>
-
- <_>
- 5 7 1 2 -1.
- <_>
- 5 8 1 1 2.
- <_>
-
- <_>
- 14 4 6 6 -1.
- <_>
- 14 6 6 2 3.
- <_>
-
- <_>
- 5 7 7 2 -1.
- <_>
- 5 8 7 1 2.
- <_>
-
- <_>
- 8 6 6 9 -1.
- <_>
- 8 9 6 3 3.
- <_>
-
- <_>
- 5 4 6 1 -1.
- <_>
- 7 4 2 1 3.
- <_>
-
- <_>
- 13 0 6 4 -1.
- <_>
- 16 0 3 2 2.
- <_>
- 13 2 3 2 2.
- <_>
-
- <_>
- 1 2 18 12 -1.
- <_>
- 1 6 18 4 3.
- <_>
-
- <_>
- 3 2 17 12 -1.
- <_>
- 3 6 17 4 3.
- <_>
-
- <_>
- 5 14 7 3 -1.
- <_>
- 5 15 7 1 3.
- <_>
-
- <_>
- 10 14 1 3 -1.
- <_>
- 10 15 1 1 3.
- <_>
-
- <_>
- 3 14 3 3 -1.
- <_>
- 3 15 3 1 3.
- <_>
-
- <_>
- 14 4 6 6 -1.
- <_>
- 14 6 6 2 3.
- <_>
-
- <_>
- 0 4 6 6 -1.
- <_>
- 0 6 6 2 3.
- <_>
-
- <_>
- 12 5 4 3 -1.
- <_>
- 12 6 4 1 3.
- <_>
-
- <_>
- 4 5 4 3 -1.
- <_>
- 4 6 4 1 3.
- <_>
-
- <_>
- 18 0 2 6 -1.
- <_>
- 18 2 2 2 3.
- <_>
-
- <_>
- 8 1 4 9 -1.
- <_>
- 10 1 2 9 2.
- <_>
-
- <_>
- 6 6 8 2 -1.
- <_>
- 6 6 4 2 2.
- <_>
-
- <_>
- 6 5 4 2 -1.
- <_>
- 6 5 2 1 2.
- <_>
- 8 6 2 1 2.
- <_>
-
- <_>
- 10 5 2 3 -1.
- <_>
- 10 6 2 1 3.
- <_>
-
- <_>
- 9 5 1 3 -1.
- <_>
- 9 6 1 1 3.
- <_>
-
- <_>
- 9 10 2 2 -1.
- <_>
- 9 11 2 1 2.
- <_>
-
- <_>
- 0 8 4 3 -1.
- <_>
- 0 9 4 1 3.
- <_>
-
- <_>
- 6 0 8 6 -1.
- <_>
- 6 3 8 3 2.
- <_>
-
- <_>
- 1 0 6 4 -1.
- <_>
- 1 0 3 2 2.
- <_>
- 4 2 3 2 2.
- <_>
-
- <_>
- 13 0 3 7 -1.
- <_>
- 14 0 1 7 3.
- <_>
-
- <_>
- 9 16 2 2 -1.
- <_>
- 9 17 2 1 2.
- <_>
-
- <_>
- 11 4 6 10 -1.
- <_>
- 11 9 6 5 2.
- <_>
-
- <_>
- 0 10 19 2 -1.
- <_>
- 0 11 19 1 2.
- <_>
-
- <_>
- 9 5 8 9 -1.
- <_>
- 9 8 8 3 3.
- <_>
-
- <_>
- 4 0 3 7 -1.
- <_>
- 5 0 1 7 3.
- <_>
-
- <_>
- 8 6 4 12 -1.
- <_>
- 10 6 2 6 2.
- <_>
- 8 12 2 6 2.
- <_>
-
- <_>
- 0 2 6 4 -1.
- <_>
- 0 4 6 2 2.
- <_>
-
- <_>
- 8 15 4 3 -1.
- <_>
- 8 16 4 1 3.
- <_>
-
- <_>
- 8 0 3 7 -1.
- <_>
- 9 0 1 7 3.
- <_>
-
- <_>
- 9 5 3 4 -1.
- <_>
- 10 5 1 4 3.
- <_>
-
- <_>
- 8 5 3 4 -1.
- <_>
- 9 5 1 4 3.
- <_>
-
- <_>
- 7 6 6 1 -1.
- <_>
- 9 6 2 1 3.
- <_>
-
- <_>
- 7 14 4 4 -1.
- <_>
- 7 14 2 2 2.
- <_>
- 9 16 2 2 2.
- <_>
-
- <_>
- 13 14 4 6 -1.
- <_>
- 15 14 2 3 2.
- <_>
- 13 17 2 3 2.
- <_>
-
- <_>
- 7 8 1 8 -1.
- <_>
- 7 12 1 4 2.
- <_>
-
- <_>
- 16 0 2 8 -1.
- <_>
- 17 0 1 4 2.
- <_>
- 16 4 1 4 2.
- <_>
-
- <_>
- 2 0 2 8 -1.
- <_>
- 2 0 1 4 2.
- <_>
- 3 4 1 4 2.
- <_>
-
- <_>
- 6 1 14 3 -1.
- <_>
- 6 2 14 1 3.
- <_>
-
- <_>
- 7 9 3 10 -1.
- <_>
- 7 14 3 5 2.
- <_>
-
- <_>
- 9 14 2 2 -1.
- <_>
- 9 15 2 1 2.
- <_>
-
- <_>
- 7 7 6 8 -1.
- <_>
- 7 11 6 4 2.
- <_>
-
- <_>
- 9 7 3 6 -1.
- <_>
- 9 10 3 3 2.
- <_>
-
- <_>
- 7 13 3 3 -1.
- <_>
- 7 14 3 1 3.
- <_>
-
- <_>
- 9 9 2 2 -1.
- <_>
- 9 10 2 1 2.
- <_>
-
- <_>
- 0 1 18 2 -1.
- <_>
- 6 1 6 2 3.
- <_>
-
- <_>
- 7 1 6 14 -1.
- <_>
- 7 8 6 7 2.
- <_>
-
- <_>
- 1 9 18 1 -1.
- <_>
- 7 9 6 1 3.
- <_>
-
- <_>
- 9 7 2 2 -1.
- <_>
- 9 7 1 2 2.
- <_>
-
- <_>
- 9 3 2 9 -1.
- <_>
- 10 3 1 9 2.
- <_>
-
- <_>
- 18 14 2 3 -1.
- <_>
- 18 15 2 1 3.
- <_>
-
- <_>
- 7 11 3 1 -1.
- <_>
- 8 11 1 1 3.
- <_>
-
- <_>
- 10 8 3 4 -1.
- <_>
- 11 8 1 4 3.
- <_>
-
- <_>
- 7 14 3 6 -1.
- <_>
- 8 14 1 6 3.
- <_>
-
- <_>
- 10 8 3 4 -1.
- <_>
- 11 8 1 4 3.
- <_>
-
- <_>
- 7 8 3 4 -1.
- <_>
- 8 8 1 4 3.
- <_>
-
- <_>
- 7 9 6 9 -1.
- <_>
- 7 12 6 3 3.
- <_>
-
- <_>
- 0 14 2 3 -1.
- <_>
- 0 15 2 1 3.
- <_>
-
- <_>
- 11 12 1 2 -1.
- <_>
- 11 13 1 1 2.
- <_>
-
- <_>
- 4 3 8 3 -1.
- <_>
- 8 3 4 3 2.
- <_>
-
- <_>
- 0 4 20 6 -1.
- <_>
- 0 4 10 6 2.
- <_>
-
- <_>
- 9 14 1 3 -1.
- <_>
- 9 15 1 1 3.
- <_>
-
- <_>
- 8 14 4 3 -1.
- <_>
- 8 15 4 1 3.
- <_>
-
- <_>
- 0 15 14 4 -1.
- <_>
- 0 17 14 2 2.
- <_>
-
- <_>
- 1 14 18 6 -1.
- <_>
- 1 17 18 3 2.
- <_>
-
- <_>
- 0 0 10 6 -1.
- <_>
- 0 0 5 3 2.
- <_>
- 5 3 5 3 2.
From 7d75de45c95df1069407a3685d2c7821940b60a2 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 1 Sep 2025 19:03:20 +0530
Subject: [PATCH 63/66] Create see-yourself.py
---
see-yourself/see-yourself.py | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 see-yourself/see-yourself.py
diff --git a/see-yourself/see-yourself.py b/see-yourself/see-yourself.py
new file mode 100644
index 00000000..5d8b7a11
--- /dev/null
+++ b/see-yourself/see-yourself.py
@@ -0,0 +1,26 @@
+from imutils.video import VideoStream
+import cv2
+
+# grab the reference to the webcam
+vs = VideoStream(src=0).start()
+
+# keep looping
+while True:
+ # grab the current frame
+ frame = vs.read()
+
+ # if we are viewing a video and we did not grab a frame,
+ # then we have reached the end of the video
+ if frame is None:
+ break
+
+ # show the frame to our screen
+ cv2.imshow("Frame", frame)
+ key = cv2.waitKey(1) & 0xFF
+
+ # if the 'q' or ESC key is pressed, stop the loop
+ if key == ord("q") or key == 27:
+ break
+
+# close all windows
+cv2.destroyAllWindows()
From 34f91b51cad11eb4b6b5b9f1b8bea4e79b504d90 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Mon, 1 Sep 2025 19:03:50 +0530
Subject: [PATCH 64/66] Create readme.rst
---
see-yourself/readme.rst | 1 +
1 file changed, 1 insertion(+)
create mode 100644 see-yourself/readme.rst
diff --git a/see-yourself/readme.rst b/see-yourself/readme.rst
new file mode 100644
index 00000000..67b58966
--- /dev/null
+++ b/see-yourself/readme.rst
@@ -0,0 +1 @@
+Please follow the tutorial https://roytuts.com/see-yourself-in-webcam-using-python/
From d6e756185e0b28d7aaafc7209ce70c64a40c6268 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 1 May 2026 12:25:11 +0530
Subject: [PATCH 65/66] Create requirements.txt
---
image-to-text/requirements.txt | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 image-to-text/requirements.txt
diff --git a/image-to-text/requirements.txt b/image-to-text/requirements.txt
new file mode 100644
index 00000000..178c4e72
--- /dev/null
+++ b/image-to-text/requirements.txt
@@ -0,0 +1,4 @@
+numpy<2
+pytesseract==0.3.10
+Pillow==10.3.0
+opencv-python==4.9.0.80
From 10e6d532741af4dda9de2a5d13320f79eaef6953 Mon Sep 17 00:00:00 2001
From: Soumitra
Date: Fri, 1 May 2026 12:25:47 +0530
Subject: [PATCH 66/66] Add files via upload
---
image-to-text/README.md | 21 ++++++++++
image-to-text/image-to-text.py | 70 ++++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+)
create mode 100644 image-to-text/README.md
create mode 100644 image-to-text/image-to-text.py
diff --git a/image-to-text/README.md b/image-to-text/README.md
new file mode 100644
index 00000000..e303f92f
--- /dev/null
+++ b/image-to-text/README.md
@@ -0,0 +1,21 @@
+build env:
+
+1. py -m venv buildenv
+2. buildenv\Scripts\activate
+3. python.exe -m pip install --upgrade pip
+4. pip install -r requirements.txt
+
+Run code:
+
+Single image -
+python image_to_text.py sample.png
+
+Creates outputs/sample.txt
+
+Multiple images from a folder -
+python image_to_text.py images/
+
+Creates outputs/img1.txt, outputs/img2.txt, etc.
+
+Multilingual -
+python image_to_text.py sample.png --lang hin+eng
diff --git a/image-to-text/image-to-text.py b/image-to-text/image-to-text.py
new file mode 100644
index 00000000..9dd51097
--- /dev/null
+++ b/image-to-text/image-to-text.py
@@ -0,0 +1,70 @@
+import cv2
+from PIL import Image
+import pytesseract
+import os
+import glob
+import argparse
+
+# Configure path to Tesseract executable if needed (Windows users)
+# Example: r"C:\Program Files\Tesseract-OCR\tesseract.exe"
+# Uncomment and set the path if required
+# pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
+
+def preprocess_image(image_path: str) -> str:
+ """
+ Preprocess the image for better OCR accuracy.
+ Converts to grayscale and applies thresholding.
+ Returns the path to the processed image.
+ """
+ img = cv2.imread(image_path)
+ gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
+ _, thresh = cv2.threshold(gray, 150, 255, cv2.THRESH_BINARY)
+
+ processed_path = "processed.png"
+ cv2.imwrite(processed_path, thresh)
+ return processed_path
+
+def extract_text(image_path: str, lang: str = "eng") -> str:
+ """
+ Extract text from an image using Tesseract OCR.
+ """
+ processed_path = preprocess_image(image_path)
+ text = pytesseract.image_to_string(Image.open(processed_path), lang=lang)
+ return text
+
+def save_text(image_path: str, text: str, output_dir: str = "outputs"):
+ """
+ Save extracted text into a separate file for each image.
+ """
+ os.makedirs(output_dir, exist_ok=True)
+ base_name = os.path.splitext(os.path.basename(image_path))[0]
+ output_file = os.path.join(output_dir, f"{base_name}.txt")
+ with open(output_file, "w", encoding="utf-8") as f:
+ f.write(text)
+ print(f"Saved extracted text to {output_file}")
+
+def process_path(path: str, lang: str = "eng"):
+ """
+ Handle both single image file and folder of images.
+ """
+ if os.path.isfile(path):
+ text = extract_text(path, lang)
+ save_text(path, text)
+ elif os.path.isdir(path):
+ files = glob.glob(os.path.join(path, "*.png")) + glob.glob(os.path.join(path, "*.jpg"))
+ if not files:
+ print(f"No images found in folder '{path}'.")
+ return
+ for file in files:
+ text = extract_text(file, lang)
+ save_text(file, text)
+ else:
+ print(f"Path '{path}' is not valid.")
+
+if __name__ == "__main__":
+ parser = argparse.ArgumentParser(description="Extract text from images using OCR")
+ parser.add_argument("path", help="Path to an image file or a folder containing images")
+ parser.add_argument("--lang", default="eng", help="Language code for OCR (default: eng)")
+ args = parser.parse_args()
+
+ process_path(args.path, args.lang)