A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| #NoEnv | |
| #Warn All | |
| #Warn LocalSameAsGlobal, Off | |
| #Persistent | |
| /* | |
| Speech Recognition | |
| ================== | |
| A class providing access to Microsoft's SAPI. Requires the SAPI SDK. |
| ```{r setup, echo=FALSE, results='hide'} | |
| chunkref <- local({ | |
| function(chunklabel) { | |
| sprintf('[%s](#%s)', chunklabel, chunklabel ) | |
| } | |
| }) | |
| secref <- local({ | |
| function(seclabel) { | |
| sprintf('[%s](#%s)', seclabel, seclabel ) |
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.
$ python -m SimpleHTTPServer 8000| { | |
| "name" : "rarst/install-test", | |
| "description" : "Test project for WordPress stack via Composer", | |
| "authors" : [ | |
| { | |
| "name" : "Andrey Savchenko", | |
| "homepage": "http://www.Rarst.net/" | |
| } | |
| ], | |
| "type" : "project", |
| import time | |
| import socket | |
| import base64 | |
| src = '192.168.1.2' # ip of remote | |
| mac = '00-AB-11-11-11-11' # mac of remote | |
| remote = 'python remote' # remote name | |
| dst = '192.168.1.3' # ip of tv | |
| app = 'python' # iphone..iapp.samsung |