This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import os | |
| # Opens the inbuilt camera of laptop to capture video. | |
| cap = cv2.VideoCapture(0) | |
| i = 0 | |
| while(cap.isOpened()): | |
| ret, frame = cap.read() | |
| # This condition prevents from infinite looping |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| print(datetime.datetime.now().strftime("%a, %d %B %Y %H:%M:%S") | |
| a - Day | |
| d - date | |
| b - month | |
| output : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with open("output.txt", "a") as f: | |
| print("result will be save in output.txt", file=f) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if apache server stopped in XAMP | |
| step 1 : sudo service apache2 status | |
| step 2 : sudo service apache2 stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Fetch API</title> | |
| <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script> | |
| <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script> | |
| <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Query Data from External API: WordPress API integration using wp_remote_get() : | |
| code : | |
| <?php | |
| /** | |
| * Plugin name: Query APIs | |
| * Plugin URI: https://omukiguy.com | |
| * Description: Get information from external APIs in WordPress | |
| * Author: Laurence Bahiirwa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| permission to all users = sudo chmod -R 777 lampp/ | |
| phpmyadmin error = sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| START XAMPP IN TERMINAL | |
| step 1 : cd /opt/lampp | |
| step 2 : sudo /opt/lampp/lampp start | |
| --------------------------------------------------------------------------------------------------- | |
| Start XAMPP |
NewerOlder