Skip to content

Instantly share code, notes, and snippets.

View ajoydas's full-sized avatar

Ajoy Das ajoydas

View GitHub Profile
@ajoydas
ajoydas / address.cc
Created January 18, 2018 08:49 — forked from Yeaseen/address.cc
//
void AddrSpace::loadIntoFreePage(int vpn){
int physicalPageNo=memoryManager->AllocPage();
pageTable[vpn].physicalPage = physicalPageNo;
pageTable[vpn].valid = true;
bzero(&machine -> mainMemory[(pageTable[vpn].physicalPage) * PageSize], PageSize);
@ajoydas
ajoydas / ns2-olsr-ubuntu-xenial.md
Created November 30, 2017 22:26 — forked from slashsbin/ns2-olsr-ubuntu-xenial.md
Install & Setup NS2(w/ UM-OLSR Patch) on Ubuntu 16.04

Upgrade Ubuntu

sudo apt update
sudo apt upgrade -Vy

Download NS2

Download NS2 & OLSR:

@ajoydas
ajoydas / 0_reuse_code.js
Created May 23, 2017 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console