pip install git+https://github.com/hholst80/gym-air
It is also possible to pip install from a private repository using deploy keys, see:
| import time | |
| import concurrent.futures | |
| def worker(n): | |
| time.sleep(n) | |
| return 42 | |
| with concurrent.futures.ThreadPoolExecutor() as extor: |
| #!/bin/bash | |
| # trap "{ echo killing $$ > $HOME/test.log; }" SIGHUP | |
| CID=$(docker run -tid alpine:latest /bin/sh -c "/bin/sleep 3600") | |
| trap "{ docker stop $CID && docker rm $CID; }" SIGHUP | |
| docker attach $CID |
sudo yum install epel-release
sudo yum update
| # Basic dumb abstraction. | |
| class Base(object): | |
| def name(self): | |
| return self._name | |
| # .... | |
| # MegaBase: an abstraction that we can work with. | |
| # Classic OO and derived from Base. |
| /* strtab.c */ | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| char *base = ""; | |
| #define STRING_ADDRESS(id) (base+id) | |
| #define STRING_ID(address) (signed short)((address)-base) | |
| signed short foo(void) |