Skip to content

Instantly share code, notes, and snippets.

View sentinelleader's full-sized avatar

Deepak Mohandas sentinelleader

View GitHub Profile
@sentinelleader
sentinelleader / complexitypython.txt
Created September 27, 2017 01:15 — forked from Gr1N/complexitypython.txt
Complexity of Python Operations
Complexity of Python Operations
In this lecture we will learn the complexity classes of various operations on
Python data types. Then we wil learn how to combine these complexity classes to
compute the complexity class of all the code in a function, and therefore the
complexity class of the function. This is called "static" analysis, because we
do not need to run any code to perform it.
------------------------------------------------------------------------------
<Response>
<Gather input="speech"
action="http://0a485498.ngrok.io/"
partialResultCallback="http://0a485498.ngrok.io/">
<Say>Say ahoy to Twilio Speech Recognition!</Say>
</Gather>
</Response>
@sentinelleader
sentinelleader / gist:6f9c27a1ed495aa8568ce12c679902b5
Created November 27, 2017 07:58 — forked from ptigas/gist:2820165
linked list implementation in python
class Node :
def __init__( self, data ) :
self.data = data
self.next = None
self.prev = None
class LinkedList :
def __init__( self ) :
self.head = None
@sentinelleader
sentinelleader / ls.rst
Created February 13, 2018 12:04 — forked from amitsaha/ls.rst
How does `ls` work?

How does ls work?

I wanted to be really able to explain to a fair amount of detail how does the program :command:`ls` actually work right from the moment you type the command name and hit ENTER. What goes on in user space and and in kernel space? This is my attempt and what I have learned so far on Linux (Fedora 19, 3.x kernel).

How does the shell find the location of 'ls' ?

@sentinelleader
sentinelleader / web-servers.md
Created May 13, 2021 14:02 — 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