Skip to content

Instantly share code, notes, and snippets.

View jamiebrynes7's full-sized avatar

Jamie Brynes jamiebrynes7

View GitHub Profile
using Unity.Burst;
using Unity.Collections;
using Unity.Entities;
using Unity.Jobs;
using Unity.Transforms;
using UnityEngine;
// TEST
namespace Tiles
{
@jamiebrynes7
jamiebrynes7 / ecs-string.cs
Created August 8, 2018 15:11
Strings in an ECS component
// Allocation singleton class
public static class StringProvider
{
private static readonly Dictionary<uint, string> Storage = new Dictionary<uint, string>();
private static uint nextHandle = 0;
public static uint Allocate(string value = default(string))
{
@jamiebrynes7
jamiebrynes7 / spatial_docs.py
Created August 4, 2018 13:46
SpatialOS Docs Generator w/ Markov Chain
import markovify
import requests
from bs4 import BeautifulSoup
RELEASES = ["13.0", "12.2", "11.2"]
BASE_URL = "https://docs.improbable.io/reference/{}/releases/release-notes"
release_notes_list = []
for release in RELEASES:
@jamiebrynes7
jamiebrynes7 / main.py
Created August 4, 2018 13:41
Mitchell and Webb Script Markov Generator
import os
import random
import markovify
import requests
from bs4 import BeautifulSoup
MAX_SEASON = 4
EPISODES_PER_SEASON = 6