Skip to content

Instantly share code, notes, and snippets.

View Charlie-robin's full-sized avatar
🍩

Charlie Richardson Charlie-robin

🍩
View GitHub Profile
@Charlie-robin
Charlie-robin / json-mermaid-erd.md
Last active April 29, 2025 13:27
JSON & Mermaid

JSON

{
  "company": "Corndel",
  "department": {
    "name": "Software Engineering",
    "employees": [
      {
        "name": "John Doe",
 "position": "PDE",
@Charlie-robin
Charlie-robin / Main.java
Last active February 6, 2025 16:12
Redis/Jedis Demo
package demo;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.jdi.InconsistentDebugInfoException;
import org.json.JSONObject;
import redis.clients.jedis.UnifiedJedis;
import redis.clients.jedis.json.Path2;
import redis.clients.jedis.search.*;
import redis.clients.jedis.search.schemafields.NumericField;
@Charlie-robin
Charlie-robin / setup-bee-chat.md
Created January 7, 2025 12:13
Set up WS Javalin

Set up Beechat

This is how to setup the Bee chat repo with Javalin using Intellij.

Create Server module

  1. Delete server folder
  2. Go to File -> New -> New Module
    • Select Generators -> Maven Archetype
      • Name = server
@Charlie-robin
Charlie-robin / Main.java
Last active October 4, 2023 08:45
Basic snap logic
package org.example;
import java.util.*;
public class Main {
public static void main(String[] args) {
List<String> computersDeck = new ArrayList<>(List.of("a", "b", "c"));
List<String> playersDeck = new ArrayList<>(computersDeck);
@Charlie-robin
Charlie-robin / users.json
Last active August 25, 2022 08:41
Mock JSON data
[
{ "id": 0, "first_name": "Valentin", "last_name": "Abrahamson" },
{ "id": 1, "first_name": "Guillermo", "last_name": "Abrahamson" },
{ "id": 2, "first_name": "Fumiko", "last_name": "Babilon" },
{ "id": 3, "first_name": "Lavern", "last_name": "Baggott" },
{ "id": 4, "first_name": "Bryan", "last_name": "Brauer" },
{ "id": 5, "first_name": "Dania", "last_name": "Tietge" },
{ "id": 6, "first_name": "Kisha", "last_name": "Cordill" },
{ "id": 7, "first_name": "Lani", "last_name": "Shamel" },
{ "id": 8, "first_name": "Jimmie", "last_name": "Pehowic" },
@Charlie-robin
Charlie-robin / ratings.json
Last active August 25, 2022 08:42
Mock JSON data
[
{ "id": 0, "user_id": 0, "movie_id": 2, "rating": 2 },
{ "id": 1, "user_id": 0, "movie_id": 5, "rating": 3 },
{ "id": 2, "user_id": 1, "movie_id": 6, "rating": 0 },
{ "id": 3, "user_id": 1, "movie_id": 6, "rating": 4 },
{ "id": 4, "user_id": 2, "movie_id": 1, "rating": 9 },
{ "id": 5, "user_id": 2, "movie_id": 3, "rating": 4 },
{ "id": 6, "user_id": 3, "movie_id": 3, "rating": 5 },
{ "id": 7, "user_id": 3, "movie_id": 4, "rating": 3 },
{ "id": 8, "user_id": 4, "movie_id": 3, "rating": 8 },
@Charlie-robin
Charlie-robin / movies.json
Last active August 25, 2022 08:42
Mock JSON data
[
{ "id": 0, "title": "The Shawshank Redemption", "year_released": "1994" },
{ "id": 1, "title": "The Godfather", "year_released": "1972" },
{ "id": 2, "title": "The Dark Knight", "year_released": "2008" },
{ "id": 3, "title": "The Godfather Part II", "year_released": "1974" },
{ "id": 4, "title": "12 Angry Men", "year_released": "1957" },
{ "id": 5, "title": "Schindler's List", "year_released": "1993" },
{ "id": 6, "title": "The Lord of the Rings: The Return of the King", "year_released": "2003" },
{ "id": 7, "title": "Pulp Fiction", "year_released": "1994" },
{ "id": 8, "title": "The Lord of the Rings: The Fellowship of the Ring", "year_released": "2001" },

Full-stack-project

Overview

You’re going to build a full-stack web application!

This will solidify the concepts we’ve covered so far, built using these technologies:

  • Java
  • Spring
[
{
"date_created": "1997-11-02",
"nationality": "Afrikaans",
"greeting": "Hallo (hal-low)",
"origin_country": "South Africa",
"created_by": "Philip Vandeberg",
"id": 1
},
{

Halfway Challenge - Marking Scheme

Note

There is a chance of getting 120/100 due to adding and extending the project.

There is no penalty for not attempting stage 4a & 4b.

Brief Stages (50%)