(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| from subprocess import Popen, PIPE | |
| from time import sleep | |
| # run the shell as a subprocess: | |
| p = Popen(['python', 'shell.py'], | |
| stdin = PIPE, stdout = PIPE, stderr = PIPE, shell = False) | |
| # issue command: | |
| p.stdin.write('command\n') | |
| # let the shell output the result: | |
| sleep(0.1) |
| import os | |
| import struct | |
| import numpy as np | |
| """ | |
| Loosely inspired by http://abel.ee.ucla.edu/cvxopt/_downloads/mnist.py | |
| which is GPL licensed. | |
| """ | |
| def read(dataset = "training", path = "."): |
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/arm 4.8.0 Kernel Configuration | |
| # | |
| CONFIG_ARM=y | |
| CONFIG_ARM_HAS_SG_CHAIN=y | |
| CONFIG_MIGHT_HAVE_PCI=y | |
| CONFIG_SYS_SUPPORTS_APM_EMULATION=y | |
| CONFIG_HAVE_PROC_CPU=y | |
| CONFIG_STACKTRACE_SUPPORT=y |
| /* | |
| * Copyright 2012 Stefan Roese | |
| * Stefan Roese <sr@denx.de> | |
| * | |
| * This file is dual-licensed: you can use it either under the terms | |
| * of the GPL or the X11 license, at your option. Note that this dual | |
| * licensing only applies to this file, and not this project as a | |
| * whole. | |
| * | |
| * a) This library is free software; you can redistribute it and/or |
| /* | |
| * Copyright 2012 Stefan Roese | |
| * Stefan Roese <sr@denx.de> | |
| * | |
| * This file is dual-licensed: you can use it either under the terms | |
| * of the GPL or the X11 license, at your option. Note that this dual | |
| * licensing only applies to this file, and not this project as a | |
| * whole. | |
| * | |
| * a) This file is free software; you can redistribute it and/or |