A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
| // Example: Queue implementation non thread-safe but still usable if clients | |
| // are synchronized somehow. | |
| // | |
| // In this case the macro DFAKE_SCOPED_LOCK has to be | |
| // used, it checks that if a thread is inside the push/pop then | |
| // noone else is still inside the pop/push | |
| class NonThreadSafeQueue { | |
| public: | |
| ... |
| #!/bin/sh | |
| docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t |
| Document Number: | P1143r3 |
|---|---|
| Date: | 2019-06-18 |
| Project: | Programming Language C++, Evolution |
| Revises: | P1143r2 |
| Reply to: | eric@efcs.ca |
| # This is the CMakeCache file. | |
| # For build in directory: /home/keno/julia/deps/scratch/llvm-svn/build_Release+Asserts | |
| # It was generated by CMake: /usr/bin/cmake | |
| # You can edit this file to change values found and used by cmake. | |
| # If you do not want to change any of the values, simply exit the editor. | |
| # If you do want to change a value, simply edit, save, and exit the editor. | |
| # The syntax for the file is as follows: | |
| # KEY:TYPE=VALUE | |
| # KEY is the name of a variable in the cache. | |
| # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. |
| set disassembly-flavor intel | |
| set disassemble-next-line on | |
| set history save on | |
| set print pretty on | |
| set pagination off | |
| set confirm off | |
| define xxd | |
| dump binary memory dump.bin $arg0 $arg0+$arg1 |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
Данная лабораторная работа посвещена изучению систем обмена данными