Skip to content

Instantly share code, notes, and snippets.

View dev-drprasad's full-sized avatar

Reddy Prasad D dev-drprasad

View GitHub Profile
@dev-drprasad
dev-drprasad / gist:abb721f490258b5165b143c5b193a9ec
Created December 23, 2020 07:19 — forked from moraes/gist:2141121
LIFO Stack and FIFO Queue in golang
package main
import (
"fmt"
)
type Node struct {
Value int
}
@dev-drprasad
dev-drprasad / RangeHTTPServer.py
Created April 17, 2019 16:14 — forked from shivakar/RangeHTTPServer.py
Python's SimpleHTTPServer extended to handle HTTP/1.1 Range requests
import os
import SimpleHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
class RangeHTTPRequestHandler(SimpleHTTPRequestHandler):
"""RangeHTTPRequestHandler is a SimpleHTTPRequestHandler
with HTTP 'Range' support"""
def send_head(self):
"""Common code for GET and HEAD commands.