Skip to content

Instantly share code, notes, and snippets.

View wiverson's full-sized avatar

Will Iverson wiverson

View GitHub Profile
@wiverson
wiverson / HOWTO-java-macos.md
Last active April 24, 2024 19:37
HOWTO make a Java Swing app look great on macOS

All of this has been confirmed to work on macOS Big Sur (11.2.3) and JDK 16.

macOS Menu Bar

To put the menu bar at the top of the screen, use the following

System.setProperty("apple.laf.useScreenMenuBar", "true");

// Use this method to set the menu bar.
@wiverson
wiverson / AppleSignIn.cs
Created April 28, 2023 23:20
Demo of using Apple Sign in with Supabase and Unity
using System;
using System.Text;
using AppleAuth;
using AppleAuth.Enums;
using AppleAuth.Extensions;
using AppleAuth.Interfaces;
using AppleAuth.Native;
using TMPro;
using UnityEngine;
@wiverson
wiverson / SupabaseStuff.cs
Created April 28, 2023 23:19
Demo illustrating connecting Supabase to Unity
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;
@wiverson
wiverson / modern-hosting-2021.md
Last active February 5, 2024 09:52
List of free hosting services (that also offer options to scale up for $) in 2021

Italics means the text/description is directly from the vendor, usually the slug line on their home page.

Non-italics means it's my comments/editorial.

Static Sites

  • Surge
    • Static web publishing for Front-End Developers
    • Simple, single-command web publishing. Publish HTML, CSS, and JS for free, without leaving the command line.

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
@wiverson
wiverson / NotificationExample.java
Last active December 7, 2023 15:31
Starting point for implementing system native notifications with JavaFX.
package com.doublerobot;
import javafx.application.Platform;
import javafx.scene.control.Label;
import java.awt.*;
import java.awt.desktop.AppForegroundEvent;
import java.awt.desktop.AppForegroundListener;
import java.awt.event.ActionEvent;
@wiverson
wiverson / general-javascript-resources.md
Last active October 15, 2023 00:01
JavaScript resources, but with a very opinionated take - small, easy to use frameworks that offer clean integration with server-side frameworks (in particular, Maven/Java).
@wiverson
wiverson / SupabaseManager.cs
Created August 28, 2023 23:17
SupabaseManager.cs - example of bootstrapping Supabase in Unity
using System;
using io.notification;
using Supabase;
using Supabase.Gotrue;
using Supabase.Gotrue.Interfaces;
using TMPro;
using UnityEngine;
using static io.notification.NotificationManager;
using static io.notification.NotificationManager.NotificationType;
using Client = Supabase.Client;
using System;
using System.IO;
using io.notification;
using Newtonsoft.Json;
using Supabase.Gotrue;
using Supabase.Gotrue.Interfaces;
using UnityEngine;
using static io.notification.NotificationManager.NotificationType;
namespace io.supabase