Skip to content

Instantly share code, notes, and snippets.

View ChristianHohlfeld's full-sized avatar
👋
Hi there!

Chris Field ChristianHohlfeld

👋
Hi there!
View GitHub Profile
@ChristianHohlfeld
ChristianHohlfeld / 2019-https-localhost.md
Created October 10, 2022 20:01 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@ChristianHohlfeld
ChristianHohlfeld / index.html
Created October 10, 2022 12:16 — forked from gaearon/index.html
Add React in One Minute
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@ChristianHohlfeld
ChristianHohlfeld / GameAdapter.cpp
Created October 4, 2018 20:39
GameAdapter.cpp
//
// GameAdapter.cpp
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#include <stdio.h>
#include "GameAdapter.h"
#include "GameServer.h"
#ifndef GameAdapter_h
#define GameAdapter_h
#include <stdio.h>
#include "yojimbo.h"
#include "GameMessageFactory.h"
class GameServer;
class GameAdapter : public yojimbo::Adapter {
public:
@ChristianHohlfeld
ChristianHohlfeld / GameMessageFactory.h
Created October 4, 2018 20:38
GameMessageFactory.h
//
// GameMessageFactory.h
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#ifndef GameMessageFactory_h
#define GameMessageFactory_h
#include "GameMessageType.h"
@ChristianHohlfeld
ChristianHohlfeld / ClientSendMessage
Created October 4, 2018 20:36
ClientSendMessage
void HelloWorld::ClientSendMessage() {
if (client != nullptr && clientGameObject != nullptr) {
client->SendTestMessage(clientGameObject->getSprite()->getPositionX(), clientGameObject->getSprite()->getPositionY(), clientGameObject->getSprite()->getRotation());
}
}
@ChristianHohlfeld
ChristianHohlfeld / GameClient.cpp
Created October 4, 2018 20:34
GameClient.cpp
//
// GameClient.cpp
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#include "GameClient.h"
#include <iostream>
#include <string>
#pragma once
//
// GameClient.h
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#ifndef GameClient_h
@ChristianHohlfeld
ChristianHohlfeld / GameServer.cpp
Created October 4, 2018 20:32
GameServer.cpp
//
// GameServer.cpp
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#include "GameServer.h"
#include <iostream>
#include <string>
//
// GameServer.h
// UDPTEST
//
// Created by Christian Hohlfeld on 16.09.18.
//
#ifndef GameServer_h
#define GameServer_h