Skip to content

Instantly share code, notes, and snippets.

View YuenSzeHong's full-sized avatar

Yuen Sze Hong YuenSzeHong

View GitHub Profile
from typing import Dict
from PIL import Image
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from stich_360 import create_panorama_gpu
ROOT_DIR = './panorama'
FACES = ['f', 'b', 'l', 'r', 'u', 'd']
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
import subprocess
ROOT_DIR = './panorama'
FACES = ['f', 'b', 'l', 'r', 'u', 'd']
FACE_MAP = {
import requests
import pathlib
from bs4 import BeautifulSoup
from concurrent.futures import ThreadPoolExecutor
import time
import re
FILE_TYPE = {'video', 'panorama', 'res', 'album', 'photo', 'audio'}
FACES = ['f', 'b', 'l', 'r', 'u', 'd']
@YuenSzeHong
YuenSzeHong / sdxl-colab.ipynb
Created August 4, 2023 01:23
SDXL colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
  1. Person.java

    public class Person {
        private String name;
        private int age;
    
        public Person(String name, int age) {
            this.name = name;
            this.age = age;

beginner Java object-oriented programming exercises

Questions

  1. Write a class that represents a person's name and age.
  2. Write a class that represents a circle's radius and area.
  3. Write a class that represents a student's ID, name and score.
  4. Write a class that represents a bank account's account number, name and balance.
  5. Write a class that represents a rectangle's length and width.
  6. Write a class that represents a movie's name, director, and actors.