Skip to content

Instantly share code, notes, and snippets.

View aagontuk's full-sized avatar

Ashfaqur Rahaman aagontuk

View GitHub Profile
@aagontuk
aagontuk / ocaml.md
Last active October 22, 2021 01:39
OCaml programming language resources

INDEX

open Base;;

let x = 50;;
let y = 50.;;
let str = "hello world"
@aagontuk
aagontuk / resample.py
Created October 8, 2021 01:25
Resample Data
import pandas as pd
interval = '1min'
in_sheet = "sample.csv"
out_sheet = "output.csv"
# read the csv file
df = pd.read_csv(in_sheet)
print("Resampling to {0} data...".format(interval))
@aagontuk
aagontuk / xv6-riscv.md
Last active November 2, 2021 21:03
xv6-riscv notes

How system calls in xv6 works

  • user.h
  • syscalls.h
  • syscall.c
  • usys.pl

How trap works

Trap generates from system calls, device interrupts and illegal instructions.