Skip to content

Instantly share code, notes, and snippets.

View setup.sh
# 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
@yogesh-aggarwal
yogesh-aggarwal / material.module.ts
Last active Jul 18, 2020
Import all the angular-material components.
View material.module.ts
// 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';
View main.ts
// ElectronJS basic window
import { app, BrowserWindow } from "electron";
let win: BrowserWindow;
function loadWindow() {
win = new BrowserWindow({
width: 1080,
height: 760,
View main.py
"""
Hotel management system
"""
import time
import datetime
foodChoice = {}
activityChoice = {}
serviceCharge = 100
View employee.py
"""
Employee Management System
Name: Nishika | Saloni
Class: XII-B
Roll no: "I don't know"
"""
filename = "emp.txt"
seperator = "="*60
View cms.py
"""
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
@yogesh-aggarwal
yogesh-aggarwal / MySQL.py
Created Aug 16, 2019
Basic MySQL-Python connector code to connect database.
View MySQL.py
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
@yogesh-aggarwal
yogesh-aggarwal / cloudSettings
Last active Feb 18, 2021
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2021-02-18T05:58:20.255Z","extensionVersion":"v3.4.3"}
View Learn numpy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.