Skip to content

Instantly share code, notes, and snippets.

View ramlaxman's full-sized avatar
🎯
Focusing on Excellence in Cloud and Python

Mayur S. Patil (मयूर पाटील) ramlaxman

🎯
Focusing on Excellence in Cloud and Python
View GitHub Profile
@ramlaxman
ramlaxman / shell.c
Last active June 1, 2023 12:05 — forked from Krush206/README.md
A basic command interpreter. (For teaching purposes.)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
void my_system(char **);
int my_builtins(char *);
int main(void)
{
@ramlaxman
ramlaxman / The Technical Interview Cheat Sheet.md
Last active April 3, 2019 03:55 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

Array

Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
@ramlaxman
ramlaxman / git tutorials.md
Last active May 9, 2018 12:45 — forked from jaseemabid/git tutorials.md
Awesome git tutorials I am finding here and there

A bunch of good git tutorials

Intro to git

@ramlaxman
ramlaxman / FCFS.py
Created November 27, 2017 10:42 — forked from tanayseven/FCFS.py
FCFS (First Come First Serve) Process scheduling using python
#!/usr/bin/env python
process_queue = []
total_wtime = 0
n = int(raw_input('Enter the total no of processes: '))
for i in xrange(n):
process_queue.append([])#append a list object to the list
process_queue[i].append(raw_input('Enter p_name: '))
process_queue[i].append(int(raw_input('Enter p_arrival: ')))
total_wtime += process_queue[i][1]
process_queue[i].append(int(raw_input('Enter p_bust: ')))
//Tic-tac-toe playing AI. Exhaustive tree-search. WTFPL
//Matthew Steel 2009, www.www.repsilat.com
#include <stdio.h>
char gridChar(int i) {
switch(i) {
case -1:
return 'X';
case 0: