--- | |
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(); |
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
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Cysharp.Threading.Tasks; | |
using Postgrest.Responses; | |
using Supabase.Gotrue; | |
using Supabase.Gotrue.Exceptions; | |
using TMPro; | |
using UnityEngine; | |
using Client = Supabase.Client; |
using System; | |
using System.Text; | |
using AppleAuth; | |
using AppleAuth.Enums; | |
using AppleAuth.Extensions; | |
using AppleAuth.Interfaces; | |
using AppleAuth.Native; | |
using TMPro; | |
using UnityEngine; |
# This .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |
#!/bin/bash | |
rm -rf target | |
rm -rf nuget | |
rm -rf unpack | |
mkdir nuget | |
mkdir target | |
mkdir unpack | |
./bin/nusave-3.1.1-dawrin-x64/nusave cache package "[email protected]" --targetFrameworks "[email protected]" --cacheDir "nuget" | |
./bin/nusave-3.1.1-dawrin-x64/nusave cache package "[email protected]" --targetFrameworks "[email protected]" --cacheDir "nuget" |
Some of my favorite tools for dev on macOS in 2023.
- Powerlevel10k. Adds much nicer prompts/themes. Particularly like being able to see what Git repo & branch I am currently in.
- Fig Adds much nicer auto-complete to the Terminal.
- 1Password Adds SSH key management at the CLI.
- GitHub Desktop Because 99% of the time this is better. Diffs, commits, branches, PRs...
- SDKMan Install and manage JDKs and Maven installs.
- JetBrains Absolutely invaluable for Java (Intelli/J) and C# (Rider).
- DBSchema One of the best tools for roundtrip visual design for RDBMS.