Skip to content

Instantly share code, notes, and snippets.

View vshan's full-sized avatar
👾
Beep Boop Beep

Vinay Bhat vshan

👾
Beep Boop Beep
View GitHub Profile
@vshan
vshan / web-servers.md
Last active August 29, 2015 14:26 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@vshan
vshan / DoublyLinkedList.c
Last active August 29, 2015 14:25 — forked from mycodeschool/DoublyLinkedList.c
Doubly Linked List implementation in C
/* Doubly Linked List implementation */
#include<stdio.h>
#include<stdlib.h>
struct Node {
int data;
struct Node* next;
struct Node* prev;
};