This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.14...3.16) | |
| project(HelloGRPC) | |
| # Clone gRPC at configure time. | |
| include(FetchContent) | |
| FetchContent_Declare( | |
| grpc | |
| GIT_REPOSITORY https://github.com/grpc/grpc.git | |
| GIT_TAG v1.25.0 | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // cc sdl-metal-example.m `sdl2-config --cflags --libs` -framework Metal -framework QuartzCore && ./a.out | |
| // | |
| #include <SDL.h> | |
| #import <Metal/Metal.h> | |
| #import <QuartzCore/CAMetalLayer.h> | |
| int main (int argc, char *args[]) | |
| { | |
| SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <errno.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <resolv.h> | |
| #include <netdb.h> | |
| #include <openssl/ssl.h> | |
| #include <openssl/err.h> | |
| //Not sure what headers are needed or not | |
| //This code (theoretically) writes "Hello World, 123" to a socket over a secure TLS connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <assert.h> | |
| #include <chrono> | |
| #include <embedder.h> | |
| #include <glfw3.h> | |
| #include <iostream> | |
| static_assert(FLUTTER_ENGINE_VERSION == 1, ""); | |
| static const size_t kInitialWindowWidth = 800; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <future> | |
| #include <iostream> | |
| #include <thread> | |
| #include <queue> | |
| template <typename T> | |
| class concurrent_queue { | |
| private: | |
| std::queue<T> _queue; | |
| std::mutex _mutex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2011 Maciej Ciemborowicz | |
| * https://maciej-ciemborowicz.eu | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |