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
#include <iostream> | |
using namespace std; | |
int row, col; | |
/* | |
can be used for left traingle and pyramid pattern with space | |
* | |
* * |
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
sudo apt update && sudo apt upgrade | |
sudo apt install git tree nodejs python3-pip npm curl sysstat htop golang-go mysql-client-core-8.0 mysql-server | |
sudo snap install code --classic | |
sudo apt install php7.4-cli | |
sudo snap install android-studio --classic | |
sudo snap install postman --classic | |
sudo apt install ruby | |
sudo snap install flutter --classic | |
sudo snap install insomnia |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Calculus notes</title> | |
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> | |
<script> | |
MathJax = { | |
tex: {inlineMath: [['$', '$'], ['\\(', '\\)']]} | |
}; | |
</script> |
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 requests as r | |
from bs4 import BeautifulSoup | |
currency = input("Enter the Currency and value >> ") | |
search = "Value of {} in rupees".format(currency) | |
url = f"https://www.google.com/search?&q={search}" | |
req = r.get(url) | |
http_data = BeautifulSoup(req.text, "html.parser") | |
temp = http_data.find("div", class_='BNeawe').text |
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
#QRCode geneartion made easy | |
import os | |
import pyqrcode | |
from PIL import Image | |
class QRCode(object): | |
def __init__(self,text): | |
self.qr_image = self.qr_generator(text) |
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
#update-initramfs: Generating /boot/initrd.img-2.6.39-0-generic-pae | |
#W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169 | |
#seen in ubuntu 18.04 during sudo apt upgrade operation | |
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git | |
sudo cp -r linux-firmware/rtl_nic/ /lib/firmware/ | |
sudo update-initramfs -u |