Skip to content

Instantly share code, notes, and snippets.

View hanleybrand's full-sized avatar

Peter Hanley hanleybrand

View GitHub Profile
@hanleybrand
hanleybrand / lostcities_assets_diagram.md
Created December 4, 2023 20:50
lost cities asset system interrellation chart
classDiagram;
    LostCitiesProfile --> worldstyle;
    LostCitiesProfile --> style;
    worldstyle --|> style;
    worldstyle "1" o--|> "*" citystyle
    worldstyle --|> "1" scattered

    citystyle --> style
    citystyle --> citystyle
@hanleybrand
hanleybrand / lostcities_assets_diagram.md
Created December 4, 2023 20:48
lost cities asset system interrellation chart
classDiagram;
    LostCitiesProfile --> worldstyle;
    LostCitiesProfile --> style;
    worldstyle --|> style;
    worldstyle "1" o--|> "*" citystyle
    worldstyle --|> "1" scattered

    citystyle --> style
    citystyle --> citystyle
@hanleybrand
hanleybrand / lostcities_assets_diagram.md
Created December 4, 2023 20:47
lost cities asset system interrellation chart
classDiagram;
    LostCitiesProfile --> worldstyle;
    LostCitiesProfile --> style;
    worldstyle --|> style;
    worldstyle "1" o--|> "*" citystyle
    worldstyle --|> "1" scattered

    citystyle --> style
    citystyle --> citystyle
@hanleybrand
hanleybrand / lostcities_assets_diagram.md
Created December 4, 2023 20:47
lost cities asset system interrellation chart
graph classDiagram
    LostCitiesProfile --> worldstyle
    LostCitiesProfile --> style
    worldstyle --|> style
    worldstyle "1" o--|> "*" citystyle
    worldstyle --|> "1" scattered

    citystyle --> style
    citystyle --> citystyle
@hanleybrand
hanleybrand / lostcities_assets_diagram.md
Created December 4, 2023 20:45
lost cities asset system interrellation chart
classDiagram
    LostCitiesProfile --> worldstyle
    LostCitiesProfile --> style
    worldstyle --|> style
    worldstyle "1" o--|> "*" citystyle
    worldstyle --|> "1" scattered

    citystyle --> style
    citystyle --> citystyle
@hanleybrand
hanleybrand / canvas_data_dap_custom_download_names.py
Last active February 10, 2024 21:35
Importing instructure-dap-client and using it programatically - quickstart example scripts
import os
from pathlib import Path
import shutil
from urllib.parse import urlparse
from dap.api import DAPClient
from dap.dap_types import Format, IncrementalQuery, SnapshotQuery
import requests
output_dir_base = Path("downloads")
@hanleybrand
hanleybrand / saved_scryfall_searches.md
Last active July 7, 2021 15:57
scryfall searches
@hanleybrand
hanleybrand / ct_extended_glasses.zs
Last active February 25, 2020 18:15
WIP ContentTweaker script to create glowing, reinforced and glowing-reinforced variants of the various glass blocks.
#loader contenttweaker
import mods.contenttweaker.VanillaFactory;
import mods.contenttweaker.Block;
import mods.contenttweaker.Item;
// ref values
// glass/glowstone 0.3 hardness, 1.5 resistance
// hardened glass (education edition), 10 hardness, unknown resistance
#debug
import mods.dropt.Dropt;
import crafttweaker.item.IItemStack;
// change conquest plant blocks to only drop their items if broken with a hoe in order to
// cut down on inventory bloat
Dropt.list("conquest_drops")
.add(Dropt.rule()
@hanleybrand
hanleybrand / secrit_flags.yaml
Last active August 23, 2019 22:01
All the secret things in Canvas? *aug 2019
---
google_docs_domain_restriction:
state: hidden
display_name:
features.google_docs_domain_restriction: Google Docs Domain Restriction
description:
google_docs_domain_restriction_description: |-
Google Docs Domain Restriction allows Google Docs submissions and collaborations
to be restricted to a single domain. Students attempting to submit assignments or
join collaborations on an unapproved domain will receive an error message notifying them