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
sudo apt update | |
sudo apt upgrade -y | |
# ----------------- Install utlity packages ----------------- | |
sudo apt install -y curl nano tmux nginx build-essential libssl-dev iputils-ping | |
# ----------------- Install docker ----------------- | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done |
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
--- | |
AccessModifierOffset: "-3" | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveMacros: true | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
AlignEscapedNewlines: Left | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowAllArgumentsOnNextLine: false |
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
0 |
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
# Variables (Change to Alter the Environment) | |
BROWSER="firefox" | |
IS_INSTALL_VSCODE=true | |
VSCODE_URL="https://az764295.vo.msecnd.net/stable/622cb03f7e070a9670c94bae1a45d78d7181fbd4/code_1.53.2-1613044664_amd64.deb" | |
# CONSTANT Variables | |
KERNEL_VERSION=$(uname -r) | |
TEMP_DIR=".temp_setup" | |
VSCODE_FILE_NAME="code.deb" | |
readonly KERNEL_VERSION TEMPDIR VSCODE_FILE_NAME |
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 ALL MATERIAL COMPONENTS | |
// #STEPS | |
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc'; | |
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule] | |
import { NgModule } from '@angular/core'; | |
// *************** FORM CONTROLS *************** | |
import { MatAutocompleteModule } from '@angular/material/autocomplete'; | |
import { MatCheckboxModule } from '@angular/material/checkbox'; | |
import { MatDatepickerModule } from '@angular/material/datepicker'; |
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
// ElectronJS basic window | |
import { app, BrowserWindow } from "electron"; | |
let win: BrowserWindow; | |
function loadWindow() { | |
win = new BrowserWindow({ | |
width: 1080, | |
height: 760, |
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
""" | |
Hotel management system | |
""" | |
import time | |
import datetime | |
foodChoice = {} | |
activityChoice = {} | |
serviceCharge = 100 |
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
""" | |
Employee Management System | |
Name: Nishika | Saloni | |
Class: XII-B | |
Roll no: "I don't know" | |
""" | |
filename = "emp.txt" | |
seperator = "="*60 |
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
""" | |
CMS: Content Management System | |
Manages content specifically for a blogging website which have many posts & requires to update its content on daily basis. | |
This project is based on functional approach & specifically designed for processing huge amount of data. | |
The project supports all types of CRUD operations. | |
-- Note: Designed for School project -- | |
Name: Yogesh |
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 mysql.connector | |
db_connection = mysql.connector.connect( | |
host= "localhost", | |
user= "root", | |
passwd= "root" | |
) | |
# creating database_cursor to perform SQL operation | |
db_cursor = db_connection.cursor() | |
# executing cursor with execute method and pass SQL query |
NewerOlder