Skip to content

Instantly share code, notes, and snippets.

View ggmm-0's full-sized avatar

ggmm-0 ggmm-0

View GitHub Profile
admin:
access_log_path: "/dev/stdout"
address:
socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 7779
static_resources:
listeners:
{
"id": "bae757c2-381f-408b-b9dc-673297c3ef1e",
"name": "f9s-spark-workers-001",
"meters": {
"cpuUtil": 1.059900166389351,
"disk": {
"readBytes": 3.90654464E8,
"writeBytes": 3.78635264E8
},
"network": {
[
{
"id": "2c97ad57-c7de-450d-b2fa-909d8458c948",
"name": "f9s-spark-master-001",
"meters": {
"cpuUtil": 0.9833610648918468,
"disk": {
"readBytes": 4.24442368E8,
"writeBytes": 4.55304192E8
},
/** key code constants definition **/
#define LEFT_KEY_CODE 100
#define RIGHT_KEY_CODE 102
#define UP_KEY_CODE 101
#define DOWN_KEY_CODE 103
//...
void keyboard(int key, int x, int y) {
switch(key) {