Skip to content

Instantly share code, notes, and snippets.

View KodEx-SA's full-sized avatar

Ashley K Motsie KodEx-SA

View GitHub Profile
@KodEx-SA
KodEx-SA / App.js
Created February 4, 2026 20:08 — forked from hannaho123/App.js
What is wrong with this code - code security challenge
import { useEffect, useState } from "react";
export default function ProfilePage() {
const [user, setUser] = useState(null);
useEffect(() => {
fetch("/api/user/profile")
.then((res) => res.json())
.then((data) => {
console.log("Profile loaded:", data);
@KodEx-SA
KodEx-SA / Calc2.py
Created April 27, 2024 22:59
Calculator Project in PyCharm
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y