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
| #!/bin/bash | |
| # install python pre-reqs | |
| sudo apt-get update | |
| sudo apt-get install git | |
| sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev curl software-properties-common lzma | |
| sudo apt-get install libbz2-dev | |
| sudo apt-get install lzma | |
| sudo apt-get install liblzma-dev |
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 tkinter as tk | |
| from pyscreenshot import grab | |
| class ExampleApp(tk.Tk): | |
| def __init__(self): | |
| tk.Tk.__init__(self) | |
| self.previous_x = self.previous_y = 0 | |
| self.x = self.y = 0 | |
| self.var = tk.StringVar() | |
| self.points_recorded = [] |
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
| # implementing input from the user | |
| # for shortest job first | |
| # burst list | |
| burst = [] | |
| # enter process | |
| proc = int(input("Enter number of processes: ")) | |
| # variable to calculate the average waiting time and turn around time |
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> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| <style> | |
| table, tr, th, td{ | |
| border: 1px solid crimson; | |
| } |
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>She going too fast</title> | |
| </head> | |
| <body> | |
| <p title="Paragraph text biches"> | |
| <mark>Lorem my g</mark> ipsum, dolor sit amet consectetur adipisicing elit. Numquam eius quia possimus quae aliquid fugit delectus quaerat quod saepe, necessitatibus laboriosam! Nemo, cumque provident illum voluptatem porro consectetur quas fuga. | |
| </p> |
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
| const puppeteer = require('puppeteer'); | |
| const { waitForDebugger } = require('inspector'); | |
| (async () => { | |
| const browser = await puppeteer.launch({headless:false}); | |
| const page = await browser.newPage(); | |
| await page.goto('https://portal.svkm.ac.in/usermgmt/login',{waitUntil: 'networkidle2', timeout:300000}); | |
| await page.type('.form-control[name="username"]','<sap_id>') |
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
| const master = [ | |
| {id:1, value:'I'}, | |
| {id:4, value:'IV'}, | |
| {id:5, value:'V'}, | |
| {id:9, value:'IX'}, | |
| {id:10, value:'X'}, | |
| {id:40, value:'XL'}, | |
| {id:50, value:'L'}, | |
| {id:90, value:'XC'}, | |
| {id:100, value:'C'}, |
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
| const master = [ | |
| {id:1, value:'I'}, | |
| {id:4, value:'IV'}, | |
| {id:5, value:'V'}, | |
| {id:9, value:'IX'}, | |
| {id:10, value:'X'}, | |
| {id:40, value:'XL'}, | |
| {id:50, value:'L'}, | |
| {id:90, value:'XC'}, | |
| {id:100, value:'C'}, |
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
| const master = [ | |
| {id:1, value:'I'}, | |
| {id:4, value:'IV'}, | |
| {id:5, value:'V'}, | |
| {id:9, value:'IX'}, | |
| {id:10, value:'X'}, | |
| {id:40, value:'XL'}, | |
| {id:50, value:'L'}, | |
| {id:90, value:'XC'}, | |
| {id:100, value:'C'}, |
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
| #include<iostream> | |
| using namespace std; | |
| int main(){ | |
| cout<<"\nEnter the number of cols(or columns): "; | |
| int col; | |
| cin>>col; | |
| //since it's a square matrix then only one dimension is required! | |
| int arr[10][10]; |
NewerOlder