Skip to content

Instantly share code, notes, and snippets.

View MohaElder's full-sized avatar
🌍
Looking for World Peace

Yasushi Oh MohaElder

🌍
Looking for World Peace
View GitHub Profile
@MohaElder
MohaElder / angelica-challenge.py
Last active May 4, 2026 00:01
Angelica Challenge Solution
def computePolkadotScore(art):
lines = art.split('\n')
for line in lines:
i = line.find('""""')
if i != -1:
lo, hi = i, i + 3
break
pupils = 0
for line in lines:
if '• ; •' in line:
@MohaElder
MohaElder / sam3d_sample.py
Created November 22, 2025 01:38
A simple backend service to call sam3d model inference
from flask import Flask, request, jsonify, send_file
from flask_cors import CORS
import torch
import sys
import os
sys.path.append("notebook")
from inference import Inference
from PIL import Image
import base64
import io
@MohaElder
MohaElder / Login.swift
Created January 26, 2024 08:35
Login With Apple in Swift with Firebase
// Created by Yasushi Oh on 1/22/24.
// Referenced from ChatGPT
//UI View with the Login button component
import SwiftUI
import AuthenticationServices
struct Login: View {
var body: some View {
VStack {