Skip to content

Instantly share code, notes, and snippets.

View deepredsky's full-sized avatar

Rajesh Sharma deepredsky

View GitHub Profile

NumberToPhrase

Simple ruby script to convert numbers to phrases. This serves as example script to teach basics of ruby.

#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
import http.server
import socketserver
import urllib.request
import shutil
import os
import hashlib
import sys
class CacheHandler(http.server.CGIHTTPRequestHandler):
def do_OPTIONS(self):