Skip to content

Instantly share code, notes, and snippets.

View spilth's full-sized avatar
👽
spilth.org

Brian Kelly spilth

👽
spilth.org
View GitHub Profile
@spilth
spilth / Fortnite.digest.verse
Last active April 5, 2024 00:35
Fortnite Verse Digests: Release-24.20-CL-25058254
# Copyright Epic Games, Inc. All Rights Reserved.
#################################################
# Generated Digest of Verse API
# DO NOT modify this manually!
# Generated from build: ++Fortnite+Release-24.20-CL-25058254
#################################################
using {/Verse.org/Colors}
using {/UnrealEngine.com/Temporary/SpatialMath}
using {/Fortnite.com/Playspaces}
@spilth
spilth / one.py
Last active February 9, 2024 03:33
PrintKey to SBL
def values_or_defaults(section="0", subsection="0", block="0", lot="0", subplot="0", suffix="0"):
return section, subsection, block, lot, subplot, suffix
def print_key_to_sbl(print_key):
parts = print_key.replace(".", "-").split("-")
section, subsection, block, lot, subplot, suffix = values_or_defaults(*parts)
return (f'{section.zfill(3)}'
f'{subsection.zfill(3)}'
f'{block.zfill(4)}'
@spilth
spilth / albums-index.html.erb
Created February 25, 2022 02:46
Tabbed Navigation with Turbo Frames
<p style="color: green"><%= notice %></p>
<h1>Albums</h1>
<%= turbo_frame_tag :items do %>
<% @albums.each do |album| %>
<%= render album %>
<p>
<%= link_to "Show this album", album %>
</p>
@spilth
spilth / Qgis2dJsonEnvelope.py
Last active October 12, 2023 17:59
Copy the current QGIS Canvas Extent to the clipboard as a 2D JSON Envelope for ArcGIS REST Service Queries
from qgis.gui import QgsMessageBar
from qgis.PyQt.Qt import QApplication
import json
crs = QgsProject.instance().crs()
extent = iface.mapCanvas().extent()
envelope = {
"xmin": extent.xMinimum(),

Keybase proof

I hereby claim:

  • I am spilth on github.
  • I am spilth (https://keybase.io/spilth) on keybase.
  • I have a public key ASD4XSV7OeEY9an8SgZAKsymoML6tWHccTcxnxYaPER1tgo

To claim this, I am signing this object:

@spilth
spilth / testing-multiplayer-uefn-islands.md
Created April 3, 2023 23:00
Testing Multiplayer UEFN Islands

Testing Multiplayer UEFN Islands

  1. Start up UEFN
  2. Open your project
  3. Click "Launch Session"
  4. Wait for Fortnite to start and put you in a UEFN session
  5. Return to Lobby
  6. Game mode should be listed as "UEFN Session"
  7. Press Play and you'll be sent to what looks like a "simulation" room
  8. Invite other people to your party
@spilth
spilth / muckle_manager_device.verse
Created March 31, 2023 13:30
Muckle Manager Device
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
SpawnedMessage<localizes>(ItemName:string, Location:string):message = "The {ItemName} has spawned {Location}!"
DroppedMessage<localizes>(ItemName:string): message = "The {ItemName} has been dropped!"
PickedUpMessage<localizes>(Title:string): message = "Somebody has become {Title}"
TrackerMessage<localizes>(ItemName:string, Location:string):message = "Grab the {ItemName} located {Location}!"
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
capture_barrier := class<concrete>:
@editable
CaptureItemSpawnerDevice:capture_item_spawner_device = capture_item_spawner_device{}
@spilth
spilth / exploratory_device.verse
Created March 27, 2023 01:10
Making class attribute editable in UEFN
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
direction := enum{Up, Down, Left, Right}
coordinates := struct<concrete>:
@editable
X : float = 0.0