This file contains 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
using System.Net.Sockets; | |
using System.Text; | |
namespace ConsoleApp1 | |
{ | |
internal class Program | |
{ | |
private const string clientId = "source"; | |
private const string clientSecret = "hackme"; | |
private const string clientName = "😂 stream"; |
This file contains 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(cmake/CPM.cmake) | |
CPMAddPackage( | |
NAME mbedtls | |
GITHUB_REPOSITORY "ARMmbed/mbedtls" | |
GIT_TAG "v3.1.0" | |
OPTIONS | |
"ENABLE_PROGRAMS OFF" | |
"ENABLE_TESTING OFF" | |
) |
This file contains 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 <functional> | |
#include <iostream> | |
#include <vector> | |
template <class TArgs> | |
class Delegate | |
{ | |
std::vector<std::function<void(const TArgs &)>> _handlers; | |
public: |
This file contains 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 <functional> | |
#include <map> | |
#include <memory> | |
#include <string> | |
#include <typeindex> | |
#include <typeinfo> | |
typedef void* Object; | |
typedef std::function<Object(class ServiceCollection&)> ServiceBuilder; |
This file contains 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
$TemplateRepoName = $args[0] | |
if ($args.count -le 1) { | |
$NewRepoName = Read-Host -Prompt 'What is the name of the new repository?' | |
} else { | |
$NewRepoName = $args[1] | |
} | |
$TemplateName = Split-Path $TemplateRepoName -leaf |
This file contains 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 <functional> | |
#include <iostream> | |
#include <string> | |
template<class T> | |
class Property | |
{ | |
T _value; | |
std::function<T (void)> _get; | |
std::function<void(const T&)> _set; |
This file contains 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
#define WIN32_LEAN_AND_MEAN 1 | |
#include <windows.h> | |
#include <wininet.h> | |
#include <stdio.h> | |
int main() | |
{ | |
static HINTERNET hInternet; | |
hInternet = InternetOpenA("wininet-test", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); |