Skip to content

Instantly share code, notes, and snippets.

@RGBKnights
RGBKnights / CrosscountryCanada.txt
Created April 19, 2020 23:07
Crosscountry Canada
-------------------
1. Introduction
-------------------
Cross Country Canada was a PC game released back in 1991 for elementary
schools all across Canada. You could say it's a Canadian version of
Oregon Trail, but instead of pioneers, you are a truck driver picking
up commodities across Canada and dropping them off at one of the 80
cities in this game.
steamKey: API_KEY_GOES_HERE
mods: # Recommended mods
- screepsmod-auth
- screepsmod-admin-utils
- screepsmod-mongo # You must install and start `mongodb` and `redis` before this mod will work
bots:
simplebot: screepsbot-zeswarm
serverConfig:
tickRate: 1000
socketUpdateRate: 200
using Microsoft.Azure.WebJobs;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using Microsoft.Extensions.Logging;
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<AzureFunctionsVersion>v3</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dawn.Guard" Version="1.10.0" />
<PackageReference Include="HGV.Basilius" Version="3.0.55" />
<PackageReference Include="HGV.Daedalus" Version="2.0.18" />
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.0.0" />
[FunctionName("FnGetAccountCounts")]
public async Task<IActionResult> GetAccountCounts(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "accounts/{key}")] HttpRequest req,
[Blob("hgv-ad-players/{key}.json")]TextReader reader,
string key,
ILogger log)
{
if(reader == null)
return new NotFoundResult();
//nuget: System.IdentityModel.Tokens.Jwt
var handler = new System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler();
var header = AuthenticationHeaderValue.Parse(req.Headers["Authorization"]);
var token = handler.ReadJwtToken(header.Parameter);
var identity = new ClaimsIdentity(token.Claims, header.Scheme);
req.HttpContext.User = new ClaimsPrincipal(identity);
@RGBKnights
RGBKnights / Patch7-23.md
Created November 27, 2019 01:13
7.23 Patch Highlights

Never mind all the item craziness jumping straight into list of heroes!

VOID SPIRIT : DISABLED, sad face...

SNAP FIRE : ENABLED!
Which should means her abilities are too. I have yet to see her in a match but the game data never lies (*)
Be on the look out for:
SCATTERBLAST
FIRESNAP COOKIE
LIL' SHREDDER

@RGBKnights
RGBKnights / MTG-Mechanical-Colors.md
Last active May 21, 2019 18:13
MTG Mechanical Colors

"Abyss"

(All players/opponents must sacrifice a creature each turn.)

  • Primary: black

Sometimes black likes killing things slowly.

Animating lands

(Target land becomes an N/N creature until end of turn.)

  • Primary: green
[
{
"Keyword": "Vision",
"Count": 18,
"WinRate": 52.03
},
{
"Keyword": "Stun",
"Count": 52,
"WinRate": 51.81
"find_the_out_1"
{
"name" "find_the_out_1"
"description" "Designed by Opchip, based on a draft game"
"sections"
{
"part1"
{
"rules"
{