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 districts = { | |
"Andhra Pradesh": [ | |
"Anantapur", | |
"Chittoor", | |
"East Godavari", | |
"Guntur", | |
"Kadapa", | |
"Krishna", | |
"Kurnool", | |
"Nellore", |
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
// Program to input an array of processes with their arrival times & burst times, and schedule them using to Shortest Job First CPU Scheduling | |
#include <stdio.h> | |
#include <limits.h> | |
typedef struct | |
{ | |
int id; | |
int arrivalTime; | |
int burstTime; | |
int completionTime; |
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
// Program to input an array of processes with their arrival times & burst times, and schedule them using Round Robin CPU Scheduling | |
#include <stdio.h> | |
#include <limits.h> | |
#include <stdlib.h> | |
#define MAX_LENGTH 10 | |
typedef struct | |
{ | |
int id; | |
int arrivalTime; |
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 BREAK_DURATION = 1 | |
const INTERVIEW_DURATION = 2 | |
const START_TIME = 9 | |
const BREAK_START_HOUR = 14 | |
const MEETING_END_TIME = 18 | |
class Room { | |
currTime = START_TIME; | |
constructor(roomName = '') { | |
this.roomName = roomName |
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 CHARGE_PER_KM = 8 | |
const MIN_RATING = 4 | |
let counter = 0 | |
class Driver { | |
constructor({ name = '', ssn = Math.random(), rating = 2, distance = 49 }) { | |
this.name = name | |
this.ssn = ssn | |
this.rating = rating |
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/sh | |
# Script to automate wifi cracking | |
# requires kali linux or airmon-ng tools | |
# written to run with dmenu. (apt install dmenu) | |
echo "Scanning and identifying available wifi networks. Choose from dmenu prompt" | |
availableWifiSsids=$(nmcli -t -f ssid d wifi) | |
ssid=$(echo "$availableWifiSsids" | dmenu -p "Choose an SSID:") | |
if [ -z "$ssid" ]; then |
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 | |
# YouTube Transcript Extractor | |
# This script downloads and extracts the transcript from a YouTube video, | |
# calculates some statistics, and copies the result to the clipboard. | |
# Instructions: | |
# 1. Ensure you have the following dependencies installed: | |
# - yt-dlp: https://github.com/yt-dlp/yt-dlp#installation | |
# - jq: https://stedolan.github.io/jq/download/ |