Skip to content

Instantly share code, notes, and snippets.

View wiverson's full-sized avatar

Will Iverson wiverson

View GitHub Profile

Unity with Supabase

Here are my notes on getting Supabase working with Unity.

If you are only interested in using Supabase with your project with email/password accounts, it's pretty easy. The main thing is to use the Unity NuGet package to install UniTask (async/await) and supabase-csharp.

However, the really neat part is also supporting native Sign in With Apple on iOS. Apple is increasingly requiring developers to support Sign in with Apple on iOS, and it does provide a pretty seamless experience. One nice thing is that by following these steps Supabase integrates both the on-device native Sign in with Apple and the web-based version of Sign in with Apple. This means you could do something like having a iOS Unity project for your main gameplay or application, and also allow users to use the same account to access details in a web application (e.g. something you build in SvelteKit or React or whatever).

I'm assuming you want to support Sign in with Apple, so I'm providing the steps in the order I wou

Steps to get Capacitor working with SvelteKit

  1. Set up a SvelteKit project as usual.
npm create svelte@latest my-app
cd my-app
npm install
npm run dev -- --open
---
import { Image } from "@astrojs/image/components";
import { findImage } from "~/utils/findImage";
import { getNormalizedPost } from "~/utils/getNormalizedPost";
const {} = Astro.props;
const posts = await Astro.glob("~/data/posts/*.md"); // returns an array of posts that live at ./src/pages/post/*.md
const images = new Map();
  • angel.co
  • remote.co
  • remoteok.io
  • remotive.io
  • flexjobs.com
  • justremote.co
  • remotefront.io
  • powertofly.com
  • skipthedrive.com
  • authenticjobs.com
@wiverson
wiverson / images-to-sqlite.py
Created January 11, 2022 21:48
Images to SQLite Python Script
#!/usr/bin/env python3
import sqlite3
import os.path
# Convert file to blob data
def convertToBinaryData(filename):
with open(filename, 'rb') as file:
blobData = file.read()
return blobData