Browse Source

Removed LIBRARIES

pull/1/head
Jure Šorn 6 years ago
parent
commit
03255104be
1 changed files with 0 additions and 63 deletions
  1. 63
      LIBRARIES.md

63
LIBRARIES.md

@ -1,63 +0,0 @@
Libraries
=========
Plot
----
```
import matplotlib
matplotlib.pyplot.plot(<data>, ...)
matplotlib.pyplot.show()
matplotlib.pyplot.savefig(<filename>)
```
Web
---
```
import bottle
```
### Run
```
bottle.run(host='localhost', port=8080)
bottle.run(host='0.0.0.0', port=80, server='cherypy')
```
### Static request
### Dynamic request
### REST request
Curses
------
```
import curses
def main():
curses.wrapper(draw)
def draw(screen):
screen.clear()
screen.addstr(0, 0, "Press ESC to quit.")
while screen.getch() != 27:
pass
```
Profile
-------
```
import timeit
timeit.timeit('"-".join(str(n) for n in range(100))', number=10000)
```
```
import pycallgraph
graph = pycallgraph.output.GraphvizOutput()
graph.output_file = <filename>
with pycallgraph.PyCallGraph(output=graph):
<code>
```
Loading…
Cancel
Save