Skip to content

Instantly share code, notes, and snippets.

View BenLumenDigital's full-sized avatar

Ben Harraway BenLumenDigital

View GitHub Profile
@BenLumenDigital
BenLumenDigital / PacManLoader.swift
Created April 14, 2025 09:21
SwiftUI Pacman loader
//
// PacManLoader.swift
// ScriptReader
//
// Created by Ben Harraway on 14/04/2025.
//
import SwiftUI
struct PacManLoader: View {
@State private var progress: CGFloat = 1.0
@BenLumenDigital
BenLumenDigital / index.html
Created November 24, 2023 09:35
Browser multi-window communication. Simple as it comes.
<html>
<body>
<div id="debug"></div>
</body>
<script>
// BroadcastChannel is a browser feature, it allows communication between windows
// Find out more here: https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API
const broadcastChannel = new BroadcastChannel("com.lumen.basketball");
@BenLumenDigital
BenLumenDigital / button.html
Created November 8, 2022 15:06
CSS Gloss Button
<html>
<style>
body {
margin: 20px;
background: #1e1e1e;
font-family: "SF Pro Display",-apple-system,BlinkMacSystemFont;
}
#flex_center {
width: 100vw;