This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
void main() async{ | |
WidgetsFlutterBinding.ensureInitialized(); | |
runApp( | |
ChangeNotifierProvider( | |
create: (context) => Counter(), | |
child: MyApp(),), | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:path/path.dart'; | |
import 'package:sqflite/sqflite.dart'; | |
// Modify the todoDataModle.dart's location according to your project. | |
import 'package:<your-package-directory>/dataModle/todoDataModle.dart'; | |
class DatabaseHandlerTodos { | |
static final DatabaseHandlerTodos instance = DatabaseHandlerTodos._init(); | |
static Database? _database; | |
DatabaseHandlerTodos._init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Install pyAesCrypt module using pip-command" | |
import pyAesCrypt | |
import os | |
class Encrypt(): | |
""" | |
Contains encryptdata() & decryptdata() functions that uses AES256-CBC encryption | |
algorithm to encrypt and decrypt Files/Databases where the buffer size if 64Kb. | |
""" | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import mediapipe | |
import time | |
class HandDetection: | |
def __init__(self, markLandmarks=list(range(21)), drawPalm=True, mark=True): | |
self.mark = mark | |
self.delayFrame = 1 | |
self.prevTime = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 as cv | |
import mediapipe | |
import time | |
class FaceDetection: | |
def __init__(self) -> None: | |
self.delayFrame = 1 | |
self.prevTime = 0 | |
self.currTime = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 as cv | |
import mediapipe | |
import time | |
class PoseDetection(): | |
def __init__(self, markLandmarks=list(range(21)), drawPose=True, mark=True) -> None: | |
self.stream = cv.VideoCapture(0) | |
self.drawPose = drawPose | |
self.mark = mark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Using SQLite3 database for storing the data locally on the machine" | |
import sqlite3 | |
import os | |
"Importing the Encrypt class for encryption and decryption of databases" | |
from encrypt import Encrypt | |
class UserBase(): | |
""" | |
This UserBase() class contains all the methods/functions to manipulate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing pytube module for downloading and selecting the streams for the video to be downloaded | |
from pytube import YouTube | |
# Importing the OS module for accessing system functionality | |
# 'getlogin' gives the username of the user who is logged in currently | |
# 'remove' to delete the junk files from the system to free up space | |
from os import remove,getlogin | |
# Importing the platform module to identify the type of system on which the program is being used. | |
from platform import system | |
def get_video_info(url): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only for Snap-Packages. | |
Stop auto-update: | |
$sudo snap set system refresh.metered=hold | |
(After executing the above command, toggle-on the Metered Wifi Connection) | |
Resume auto-update: | |
$sudo snap set system refresh.metered=null | |
(After executing the above command, toggle-of the Metered Wifi Connection) |
OlderNewer