Skip to content

Instantly share code, notes, and snippets.

Problem Statement

Create a method or function that converts dash (-) or underscore (_) delimited words into camel case. The solution must handle capitalization according to the rules below:

  • The first word in the output should only be capitalized if the original word was capitalized (this is known as Upper Camel Case or Pascal Case).
  • Every word after the first should always have its first letter capitalized.

Examples

| Input | Output |

Superyacht Technology Platform - User Stories

Background

The superyacht industry has historically relied on "Dock Walking" - where technology salespeople would visit marinas to pitch directly to yacht technical personnel and captains. Due to security concerns and pandemic restrictions, this practice has largely disappeared in the past six years, creating significant information flow challenges:

  1. Technology suppliers can no longer easily showcase their products to yacht decision-makers
  2. Yacht teams have limited visibility into available technologies beyond what shipyards and project managers present
  3. Innovative technologies struggle to reach the market as they cannot get onto approved supplier lists
  4. Yacht projects often default to familiar but potentially less efficient or more expensive technologies

Database Diagram

erDiagram
    auth_users {
        uuid id PK
        text email
        text encrypted_password
        text phone
        timestamptz created_at

Superyacht Technology Platform - Feature Elaboration

For Yacht Engineering Teams (ETOs, AV/IT Officers)

Technology Discovery

  • Comprehensive Technology Database
    • Feature: Implement a searchable database with detailed entries for each yacht technology, including categories like electrical systems, AV/IT, navigation, etc.
    • Action: Develop backend to store technology data and frontend to allow browsing with filters for category, specifications, and user ratings.

Superyacht Technology Platform - Feature Breakdown and Implementation

For Yacht Engineering Teams (ETOs, AV/IT Officers)

Technology Discovery

Comprehensive Technology Database

  • Step 1: Use MongoDB to store technology data as per the Technology Schema provided.
  • Step 2: Develop a React component <TechnologyBrowser> to display technologies with filters using TechnologyFilters component.
  • Step 3: Implement API endpoints like GET /api/technologies to fetch technology data with query parameters for filtering.

Superyacht Technology Platform - Database Schema Diagrams

Below are the schema diagrams for the Superyacht Technology Platform's database, visualized using Mermaid. Each diagram represents the structure of the main entities as described in the technical documentation.

User Schema Diagram

classDiagram
    class User {
        +String email

Superyacht Technology Platform - Integrated Database Schema Diagram

classDiagram
    class User {
        +String email
        +String password
        +String firstName
        +String lastName
        +String role

SMCTL.EXE Cheat Sheet

List Available Certificates

To see all certificates available on the token:

smctl.exe list-certificates

View Certificate Details

Check details of a specific certificate:

Utility Profit Consolidated Workflow API - User Flow

This document illustrates the flow of data through the Utility Profit Consolidated Workflow API, from initial user input to final consolidated output. The diagrams and explanations provide a visual and textual representation of each step in the process.

High-Level Overview

graph TD
    A[User/Client] --> B[API Endpoint]
    B --> C{Validation}