Skip to content

Instantly share code, notes, and snippets.

View SushiWaUmai's full-sized avatar
🖥️
Coding YES

Eugene Matsumura SushiWaUmai

🖥️
Coding YES
View GitHub Profile
@SushiWaUmai
SushiWaUmai / GoogleAnalytics.tsx
Created January 23, 2023 10:42
Google Analytics Integration with Next.js worker scripts
import React from "react";
import Head from "next/head";
import Script from "next/script";
import { Partytown } from "@builder.io/partytown/react";
export interface GoogleAnalyticsProps {
measurementId: string;
}
export const GoogleAnalytics: React.FC<GoogleAnalyticsProps> = ({
// Parallax Manager made by SushiWaUmai
// Check out the gist at https://gist.github.com/SushiWaUmai/cd5c014755f68683558642b1cf479942
// Also checkout my account on GitHub https://github.com/SushiWaUmai
using UnityEngine;
namespace Parallax
{
#if UNITY_EDITOR
using UnityEditor;
public class IsSortingLayerAttribute : PropertyAttribute { }
@SushiWaUmai
SushiWaUmai / acubus-trainer.py
Created March 1, 2022 18:32
Calculation Trainer
import random
import time
from art import text2art
import argparse
import math
def create_problem(min_num, max_num):
# choose a random operator
op = random.choice(['+', '-'])
@SushiWaUmai
SushiWaUmai / FirstPersonController.cs
Created September 17, 2021 16:52
Unity Simple First Person Controller
using UnityEngine;
public class FirstPersonController : MonoBehaviour
{
[SerializeField] private float _speed = 5;
[SerializeField] private float _sensitivity = 1;
[SerializeField] private float _clampRot = 85;
[SerializeField] private bool _lockCursor = true;
[SerializeField] private float _cameraSmoothing = 0.25f;
@SushiWaUmai
SushiWaUmai / WaifuWidget.js
Last active August 5, 2022 16:38
iOS Widget which shows AI-generated waifus generated by thiswaifudoesnotexist.net
const createWidget = (img, url) => {
let w = new ListWidget();
w.backgroundImage = img;
w.url = url;
return w;
};
const main = async () => {
const type = args.widgetParameter ?? "sfw/waifu";