Skip to content

Instantly share code, notes, and snippets.

View tbhb's full-sized avatar
💭
I may be slow to respond.

Tony Burns tbhb

💭
I may be slow to respond.
View GitHub Profile
@tbhb
tbhb / IMod.cs
Created October 11, 2023 13:21
Godot 4 Mod Loading
public interface IMod
{
string ModName { get; }
void OnDisabled();
void OnEnabled();
}
module Singulus
module Microformats
# Determines the post type of an h-entry according to https://indieweb.org/post-type-discovery#Algorithm.
class EntryType
def initialize(entry_props)
@entry = entry_props
end
def call
return 'rsvp' if valid_web_uri?(entry['rsvp'])
def create
case request.media_type
when 'x-www-form-urlencoded', 'multipart/form-data'
if params.has_key?(:action) && params.has_key?(:url)
if '^(un)?delete$'.match?(params[:action])
worker_params = params.permit(:action, :url)
MicropubWorker.perform_async(worker_params)
head :accepted, location: '???'
else
render json: { error: 'invalid_request', error_description: 'Action can only be delete or undelete. See https://micropub.spec.indieweb.org for details.' }, status: 400

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@tbhb
tbhb / keybase.md
Created March 17, 2018 18:56
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am craftyphotons on github.
  • I am craftyphotons (https://keybase.io/craftyphotons) on keybase.
  • I have a public key whose fingerprint is 25D2 0B0B 9E2C 5354 54F7 9A56 ACC4 2861 BE8D AE7C

To claim this, I am signing this object: