Skip to content

Instantly share code, notes, and snippets.

View aczw's full-sized avatar
👾
focus!!

Charles Wang aczw

👾
focus!!
View GitHub Profile
@aczw
aczw / Tween.cs
Last active April 15, 2025 02:53
Simple tweening utility
using System;
using System.Collections;
using UnityEngine;
public static class Tween
{
public static IEnumerator Animate(float animTime, Action<float> enumerate, bool useUnscaledDelta = false) {
var elapsedTime = 0f;
while (elapsedTime <= animTime) {
@aczw
aczw / update-content.yml
Last active January 25, 2025 15:28
GitHub Actions workflow for syncing Obsidian vault and Quartz (using Bun). Replace the placeholder values as necessary.
name: Update vault content
on:
schedule:
- cron: '0 11 * * MON' # Run every Monday at 11 AM UTC (6 AM EST, 7 AM EDT)
workflow_dispatch:
jobs:
update_vault_content:
runs-on: ubuntu-latest
@aczw
aczw / mewo-quote.astro
Last active September 26, 2024 05:31
JS script for Matrix-like text animation on load
<blockquote class="berkeley animate-fade italic text-sweater-3 [--order:2]">
<p aria-live="polite" id="mewo-quote" class="mewo-quote h-4 w-fit -indent-1.5"></p>
</blockquote>
<script>
const speed = 40;
const size = 7;
const elt = document.querySelector<HTMLParagraphElement>("#mewo-quote")!;
const text = '"Waiting for something to happen?"';
const symbols = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()[]\\+-={}/";
@aczw
aczw / AirPennNet.8021x
Created November 22, 2023 07:45
iwd config file for AirPennNet
[Security]
EAP-Method=TTLS
[email protected]
EAP-TTLS-CACert=/absolute/path/to/cert.pem
EAP-TTLS-ServerDomainMask=noc1.dccs.upenn.edu
EAP-TTLS-Phase2-Method=Tunneled-PAP
EAP-TTLS-Phase2-Identity=<pennkey>
EAP-TTLS-Phase2-Password=<password>
@aczw
aczw / cert.pem
Created November 22, 2023 07:43
AirPennNet CA cert
-----BEGIN CERTIFICATE-----
MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCB
iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV
BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTAw
MjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMCVVMxEzARBgNV
BAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2Vy
dGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
AoICAQCAEmUXNg7D2wiz0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B