Skip to content

Instantly share code, notes, and snippets.

{
"__inputs": [
{
"name": "DS_GRAFANACLOUD-JOSHHUNT-PROM",
"label": "grafanacloud-joshhunt-prom",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
class Unmined {
map(mapId, options, regions) {
const dpiScale = window.devicePixelRatio ?? 1.0;
const worldMinX = options.minRegionX * 512;
const worldMinY = options.minRegionZ * 512;
const worldWidth = (options.maxRegionX + 1 - options.minRegionX) * 512;
const worldHeight = (options.maxRegionZ + 1 - options.minRegionZ) * 512;
const worldTileSize = 256;
content/common/ai_spawner/classifier_action_hopon.pattern.tft
content/common/native/sandbox/character_perk.string_menu.tft
content/common/native/sandbox/label_globals.label_globals.tft
content/common/native/sandbox/player_builds.string_menu.tft
content\activities_com01\ghost\highlight\highlight.sequence.tft
content\activities_com01\globals\r1_s4_activity_modifier_globals.activity_modifier_globals.tft
content\activities_com01\hopons\raids\epiphany\scepter\pocket_dimension_player_teleport\components\pocket_dimension_player_teleport_object.pattern.tft
content\activities_com01\hopons\raids\epiphany\scepter\pocket_dimension_player_teleport\components\pocket_dimension_player_teleport_return_object.pattern.tft
content\activities_com01\hopons\raids\epiphany\scepter\pocket_dimension_player_teleport\pocket_dimension_player_teleport.pattern.tft
content\activities_com01\hopons\raids\global\wipe_damage\instant\wipe_damage_instant.pattern.tft
{
"contentHash": 3289191274,
"dialogues": [
{
"contentHash": 694142546,
"type": "DialogueTree",
"dialogue": {
"contentHash": 694142546,
"type": "DialogueSequence",
"sequence": [
{
"contentHash": 3231140298,
"dialogues": [
{
"contentHash": 3091707341,
"type": "DialogueTree",
"dialogue": {
"contentHash": 3091707341,
"type": "DialogueBranch",
"options": [
{
"contentHash": 3294973613,
"dialogues": [
{
"contentHash": 2447988867,
"type": "DialogueTree",
"dialogue": {
"contentHash": 2447988867,
"type": "DialogueLine",
"nonUniqueGameHash": 3162632475,
@joshhunt
joshhunt / !README.md
Last active March 21, 2022 17:19
dialogue files

Files are of type 0x808097B8

They contain similar/related dialogue. e.g. All of a strike's dialogue will be in one file.

The file has a top-level array of 0x80809729 blocks (which I call a "DialogueTree") which represents all the different dialogue groups of dialogue. e.g. Each "trigger" of dialogue in a strike will be one of these top level entries.

There is roughly a nested tree of three types of data:

  • 0x8080972d Branch, that describes random dialogue or condition-specific dialogue
  • 0x8080972a Sequence, for a sequence of multiple lines of dialogue
  • 0x80809733 Line, an actual line of dialogue. caption, narrator, audio file
@joshhunt
joshhunt / docker-compose.yml
Last active July 26, 2024 17:57
Docker Compose file for grafana/nginx reverse proxy
version: "3"
services:
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 8080:80
networks:
{
"displayProperties": {
"description": "",
"name": "Septenary Encryption",
"icon": "/common/destiny2_content/icons/e1ade1922800ac994d2af46eef796f07.jpg",
"hasIcon": true
},
"tooltipNotifications": [],
"collectibleHash": 668425543,
"secondaryIcon": "/common/destiny2_content/icons/8ecba6551418cc18662e29cf36e63087.jpg",
@joshhunt
joshhunt / TypeHolesInTS.md
Last active September 24, 2020 15:02 — forked from disintegrator/TypeHolesInTS.md
Type holes in TypeScript

Type holes in TypeScript

In TypeScript there are a few ways you can sidestep type inference and the compiler to introduce type holes in your code. Type holes are parts of the code where we’ve lied or hid information from the compiler and can be a source of bugs that are not present in properly typed code. The common ones I see are listed below in order of really bad to bad.

Type casts

const something = getValue() as any;
const cat = dog as Cat;