Skip to content

Instantly share code, notes, and snippets.

View Oluwasetemi's full-sized avatar
🏠
Working from home

Oluwasetemi Ojo Oluwasetemi

🏠
Working from home
View GitHub Profile
@Oluwasetemi
Oluwasetemi / README.md
Created November 12, 2025 22:37
something to reproduce the deploy bug

PartyKit Servers

This directory contains PartyKit server implementations for real-time multiplayer features.

Available Servers

1. Polls Server (polls.ts)

Real-time polling system where users can create polls, vote, and see results update live.

@Oluwasetemi
Oluwasetemi / index.html
Created November 7, 2025 18:41
teaching modules to my student. To run this code becareful with the comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learning ES Modules</title>
</head>
<body>
<h1>Learning ES Modules</h1>
<script type="module" src="index.js"></script>
@Oluwasetemi
Oluwasetemi / clone.sh
Created October 29, 2025 14:55
An iterated version of my git clone or gh repo clone
function clone() {
if [[ -z $1 ]]; then
echo "Error: Repository name or URL is required."
return 1
fi
input_url="$1"
branch=""
repo_url=""
github_user=""
@Oluwasetemi
Oluwasetemi / vite-plugin-content-assets.ts
Created August 25, 2025 20:49
Sample vite plugin for asset management
import type { Plugin } from "vite";
import fs from "node:fs";
import path from "node:path";
export function contentAssetsPlugin(): Plugin {
return {
name: "content-assets",
configureServer(server) {
// Serve images from content directory
Uncaught Error: can't access property "compileAG", n is null
Ei@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:4914
hl@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:4278
gl@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:3984
d@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:1860
Si@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:1813
_tokenize@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:3:127
tokenizeLine2@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:2:8786
tokenize@https://react.oluwasetemi.dev/assets/modules/shiki-Cx6-teRe.js:147:22292
@Oluwasetemi
Oluwasetemi / Nixpack.log
Last active July 14, 2025 12:53
Build Logs
11:42:38 am Initializing build πŸ—οΈ
11:42:38 am
11:42:38 am ╔══════════════════════════════ Nixpacks v1.37.0 ══════════════════════════════╗
11:42:38 am β•‘ setup β”‚ nodejs_18, npm-9_x β•‘
11:42:38 am ║──────────────────────────────────────────────────────────────────────────────║
11:42:39 am β•‘ caddy β”‚ pkgs: caddy β•‘
11:42:39 am β•‘ β”‚ cmds: caddy fmt --overwrite /assets/Caddyfile β•‘
11:42:39 am ║──────────────────────────────────────────────────────────────────────────────║
11:42:39 am β•‘ install β”‚ npm ci β•‘
11:42:39 am ║──────────────────────────────────────────────────────────────────────────────║
// Run this command to generate base config and vs code settings:
// pnpm dlx @antfu/eslint-config@latest
import antfu from "@antfu/eslint-config";
export default antfu({
type: "app",
typescript: true,
formatters: true,
stylistic: {
/* eslint-disable node/no-process-env */
import type { ZodObject, ZodRawShape } from "zod";
import { ZodError } from "zod";
export default function tryParseEnv<T extends ZodRawShape>(
EnvSchema: ZodObject<T>,
buildEnv: Record<string, string | undefined> = process.env,
) {
try {
@Oluwasetemi
Oluwasetemi / index.css
Last active January 11, 2025 00:07
Code used during Tinyuka CSS Teaching
/*
CSS Reset
*/
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
box-sizing: border-box;
}

Tripleten Test Assignment

React App

1. Do the components render correctly? If not, what's wrong in the code?

Yes to some extent, the components render correctly but there are some issues in the code that need to be addressed:

The signup and signin page are not working due to the API not returning data.