Skip to content

Instantly share code, notes, and snippets.

View varun1729's full-sized avatar
🚀
Working

Varun Narayanan varun1729

🚀
Working
  • Los Angeles, California
View GitHub Profile
@varun1729
varun1729 / du_sort.c
Created September 9, 2019 18:27
du | sort -n
pid_t sortPID = fork();
if(sortPID < 0)
perror("cannot fork a process for sort");
else if(sortPID == 0){
//Forked process --> child: sort.
int fd[2];
//sort child opens the pipes.
if (pipe(fd) < 0)
perror("cannot create pipe");
close(fd[1]); //We're not going to write to the pipe, so close it.
@varun1729
varun1729 / hackathon_ideas.txt
Last active June 29, 2018 10:40
Hackathon Ideas
Car Play: An app that allows uses to add songs to a playlist using bluetooth or other NFC based channels.
Code Transfer: A website that teaches people an new language really quickly by only showcasing the differences between their strongest language and the new language they wish to learn.