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 Microsoft.AspNetCore.SignalR.Client; | |
using System.Reflection; | |
namespace SchmidtGit; | |
static class SignalRHubExtension | |
{ | |
public static void RegisterInterfaceWithHub<T>( this HubConnection hubConnection, T hubClient ) { | |
var methods = typeof(T).GetMethods().Where(e => e.ReturnType == typeof(Task)) ?? Array.Empty<MethodInfo>(); | |
foreach (var method in methods) | |
_ = hubConnection.On( |
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 <vector> | |
#include <algorithm> | |
#include <iostream> | |
#include <functional> | |
std::vector<std::function<void()>> schedule(std::vector<std::pair<int, std::function<void()>>> o) { | |
std::vector<std::pair<double, std::function<void()>>> q; | |
for (auto p : o) { | |
double delay = 1.0 / p.first; | |
for (int i = 1; i < p.first+1; i++) { |
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
print("Kryds og Bolle version 0.0.0.0.1") | |
gameboard = ['','','','','','','','',''] | |
playerTurn = 'X' | |
def SwitchPlayer(): | |
print("skift spiller virker ikke") | |
def Input(): | |
print("input virker ikke") |
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
# Varibles | |
my_integer = 1 | |
my_float = 1.0 | |
my_list = [1,2] | |
my_string = "Something" | |
# I/O Operations | |
my_input = input(">") | |
print(my_input) |
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
{ | |
"IsParallelized": false, | |
"Modules": [ | |
"EmptyModule", | |
"RandomDemo", | |
"AutoHarvestGather", | |
"AutoSupply" | |
] | |
} |
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
{ | |
"FolderPath": "C:\\Program Files (x86)\\StarCraft II", | |
"ConnectionAddress": "127.0.0.1", | |
"ConnectionServerPort": 8165, | |
"ConnectionClientPort": 8170, | |
"MultiplayerSharedPort": 8175, | |
"Fullscreen": false, | |
"ClientWindowWidth": 1024, | |
"ClientWindowHeight": 768, | |
"GameMap": "Cloud Kingdom LE", |
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 Abathur.Constants; | |
using Abathur.Core; | |
using Abathur.Modules; | |
namespace AbathurBot.Modules.Examples { | |
class BansheeTest : IModule { | |
private IProductionManager _pQueue; | |
public BansheeTest(IProductionManager productionManager) { | |
_pQueue = productionManager; | |
} |
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; | |
using System.Diagnostics; | |
using System.Net.WebSockets; | |
using System.Threading; | |
namespace AdequateSource | |
{ | |
class StarCraftConnectionExample | |
{ | |
public void LaunchClient() { |