Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AlgoHub - Programming Problems Hub
# gitgud - Programming Problems Hub

AlgoHub is a modern web application that provides a curated collection of programming problems from various competitive programming platforms. It helps users improve their coding skills, prepare for technical interviews, and master algorithmic thinking.
gitgud is a modern web application that provides a curated collection of programming problems from various competitive programming platforms. It helps users improve their coding skills, prepare for technical interviews, and master algorithmic thinking.

## Features

Expand Down Expand Up @@ -28,8 +28,8 @@ AlgoHub is a modern web application that provides a curated collection of progra
1. Clone the repository:

```bash
git clone https://github.com/cameroncuster/AlgoHub.git
cd AlgoHub
git clone https://github.com/cameroncuster/gitgud.git
cd gitgud
```

2. Install dependencies:
Expand Down
4 changes: 2 additions & 2 deletions VISION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# AlgoHub Vision
# gitgud Vision

## Core Concept

AlgoHub is a social platform for competitive programming problems, designed to connect problem solvers worldwide through shared content and recommendations.
gitgud is a social platform for competitive programming problems, designed to connect problem solvers worldwide through shared content and recommendations.

## Governance Structure

Expand Down
4 changes: 2 additions & 2 deletions sql/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AlgoHub Database Schema
# gitgud Database Schema

This directory contains the SQL files that define the database schema for AlgoHub.
This directory contains the SQL files that define the database schema for gitgud.

## Directory Structure

Expand Down
47 changes: 18 additions & 29 deletions sql/init.sql
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
-- AlgoHub Database Schema Initialization
-- gitgud Database Schema Initialization
-- This file includes all the necessary SQL files to set up the database schema

-- Enable UUID extension if not already enabled
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

-- Common utility functions
\i common/utility_functions.sql

-- Authentication and user management
\i auth/user_roles.sql
\i auth/user_triggers.sql

-- Problem-related tables and functions
\i problems/problems.sql
\i problems/user_problem_feedback.sql
\i problems/user_solved_problems.sql
\i problems/problem_functions.sql

-- Contest-related tables and functions
\i contests/contests.sql
\i contests/user_contest_participation.sql
\i contests/user_contest_feedback.sql
\i contests/contest_functions.sql

-- Leaderboard functions
\i leaderboard/leaderboard_functions.sql

-- Grant necessary permissions
GRANT USAGE ON SCHEMA public TO anon, authenticated, service_role;
GRANT ALL ON ALL TABLES IN SCHEMA public TO anon, authenticated, service_role;
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO anon, authenticated, service_role;
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO anon, authenticated, service_role;
\ i common / utility_functions.sql -- Authentication and user management
\ i auth / user_roles.sql \ i auth / user_triggers.sql -- Problem-related tables and functions
\ i problems / problems.sql \ i problems / user_problem_feedback.sql \ i problems / user_solved_problems.sql \ i problems / problem_functions.sql -- Contest-related tables and functions
\ i contests / contests.sql \ i contests / user_contest_participation.sql \ i contests / user_contest_feedback.sql \ i contests / contest_functions.sql -- Leaderboard functions
\ i leaderboard / leaderboard_functions.sql -- Grant necessary permissions
GRANT USAGE ON SCHEMA public TO anon,
authenticated,
service_role;
GRANT ALL ON ALL TABLES IN SCHEMA public TO anon,
authenticated,
service_role;
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO anon,
authenticated,
service_role;
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO anon,
authenticated,
service_role;
4 changes: 2 additions & 2 deletions src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<div class="mx-auto max-w-7xl px-6 sm:px-3 md:px-4">
<div class="flex items-center justify-between">
<div class="text-sm text-[var(--color-text)]">
© {new Date().getFullYear()} AlgoHub
© {new Date().getFullYear()} gitgud
</div>
<div class="flex gap-6">
<a
href="https://github.com/cameroncuster/AlgoHub"
href="https://github.com/cameroncuster/gitgud"
target="_blank"
rel="noopener noreferrer"
aria-label="GitHub Repository"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ $: if ($page) {
aria-label="Home"
class="flex items-center gap-2 text-xl font-bold text-[var(--color-heading)] no-underline"
>
<img src="/favicon.png" alt="AlgoHub Logo" class="h-6 w-6 object-contain" />
<span>AlgoHub</span>
<img src="/favicon.png" alt="gitgud Logo" class="h-12 w-12 object-contain" />
<span>gitgud.cc</span>
</a>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ onMount(() => {
</script>

<svelte:head>
<title>AlgoHub</title>
<title>gitgud</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
</svelte:head>

Expand Down
20 changes: 10 additions & 10 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<script lang="ts">
// About page for AlgoHub
// About page for gitgud
</script>

<svelte:head>
<title>AlgoHub | About</title>
<title>gitgud | About</title>
<meta name="description" content="About this app" />
</svelte:head>

<div class="mx-auto max-w-3xl px-4 py-8">
<section class="mb-10">
<h2 class="text-accent mb-4 text-2xl">AlgoHub</h2>
<h2 class="text-accent mb-4 text-2xl">gitgud</h2>
<p class="mb-4 leading-relaxed">
AlgoHub is a collection of hand-picked problems. If you are new to competitive programming you
gitgud is a collection of hand-picked problems. If you are new to competitive programming you
can learn the fundamentals at some of these sites:
</p>
<ul class="mb-4 ml-6">
Expand Down Expand Up @@ -50,7 +50,7 @@
<p class="mb-4 leading-relaxed">
It's a great approach, but the quality of problems on any given archive can vary greatly. If
only there were a way to extract the highest quality problems available on the internet. We
think we can do this! AlgoHub is a social site that allows users to curate and maintain their
think we can do this! gitgud is a social site that allows users to curate and maintain their
own lists of recommendations.
</p>

Expand All @@ -61,7 +61,7 @@
problems.
</p>
<p class="mb-4 leading-relaxed">
AlgoHub aims to collect these Canon Problems to enable you to maximize the effectiveness of
gitgud aims to collect these Canon Problems to enable you to maximize the effectiveness of
your practice by leveraging the collective knowledge of the competitive programming community.
</p>
</section>
Expand Down Expand Up @@ -99,7 +99,7 @@
<section class="mb-10">
<h2 class="text-accent mb-4 text-2xl">Algorithm Libraries</h2>

<h3 class="text-accent mb-4 text-xl">AlgoHub's Library of Choice</h3>
<h3 class="text-accent mb-4 text-xl">gitgud's Library of Choice</h3>
<ul class="mb-4 ml-6">
<li class="mb-2 leading-relaxed">
<a
Expand Down Expand Up @@ -247,9 +247,9 @@
<section class="mb-10">
<h2 class="text-accent mb-4 text-2xl">Contribute</h2>
<p class="mb-4 leading-relaxed">
AlgoHub is an open-source project, and we welcome contributions from the community. If you'd
like to help improve AlgoHub, please check out our <a
href="https://github.com/cameroncuster/AlgoHub"
gitgud is an open-source project, and we welcome contributions from the community. If you'd
like to help improve gitgud, please check out our <a
href="https://github.com/cameroncuster/gitgud"
target="_blank"
rel="noopener noreferrer">GitHub repository</a
>.
Expand Down
2 changes: 1 addition & 1 deletion src/routes/contests/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ onMount(() => {
</script>

<svelte:head>
<title>AlgoHub | Contests</title>
<title>gitgud | Contests</title>
<meta name="description" content="Browse and track programming contests from various platforms" />
</svelte:head>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/leaderboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ onMount(() => {
</script>

<svelte:head>
<title>AlgoHub | Leaderboard</title>
<title>gitgud | Leaderboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
</svelte:head>

Expand Down
2 changes: 1 addition & 1 deletion src/routes/submit/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ onMount(() => {
</script>

<svelte:head>
<title>AlgoHub | Submit</title>
<title>gitgud | Submit</title>
</svelte:head>

<div class="flex w-full items-center justify-center p-4 sm:p-6">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/submit/codeforces/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async function processUrls() {
</script>

<svelte:head>
<title>AlgoHub | Submit Codeforces</title>
<title>gitgud | Submit Codeforces</title>
</svelte:head>

<div class="mx-auto box-border w-full max-w-4xl px-4 py-6">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/submit/kattis/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
</script>

<svelte:head>
<title>AlgoHub | Submit Kattis</title>
<title>gitgud | Submit Kattis</title>
</svelte:head>

<ProblemSubmitForm
Expand Down
Binary file modified static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.