Skip to content

Instantly share code, notes, and snippets.

View aajinkya1203's full-sized avatar
❄️
Riding blade on curb

Aajinkya Singh aajinkya1203

❄️
Riding blade on curb
View GitHub Profile
@aajinkya1203
aajinkya1203 / setup.sh
Created December 19, 2023 19:42
Installing Python 3.8.1 on EC2 instance
#!/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
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 = []
# 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
<!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;
}
<!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>
@aajinkya1203
aajinkya1203 / example.js
Last active June 24, 2020 17:06
Automating logging into portal using puppeteer
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>')
@aajinkya1203
aajinkya1203 / Roman Numerical Calculator
Last active April 20, 2020 18:34
A program to calculate a given integer's equivalent Roman Numerical! (Note: This is written in Vanilla JavaScript)
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'},
@aajinkya1203
aajinkya1203 / Roman Numerical Calculator
Created April 20, 2020 18:28
A program to calculate a given integer's equivalent Roman Numerical! (Note: This is written in Vanilla JavaScript)
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'},
@aajinkya1203
aajinkya1203 / Roman Numerical Calculator
Created April 20, 2020 18:28
A program to calculate a given integer's equivalent Roman Numerical! (Note: This is written in Vanilla JavaScript)
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'},
@aajinkya1203
aajinkya1203 / NOW Day 1 - Challenge 1
Last active April 15, 2020 18:34
Program to rotate a square matrix clockwise by 90 degrees
#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];