Skip to content

Instantly share code, notes, and snippets.

View JoshuaVaneps's full-sized avatar

Joshua Vaneps JoshuaVaneps

View GitHub Profile
@JoshuaVaneps
JoshuaVaneps / Web Dev and API Quiz
Created September 8, 2023 14:34
Test your web development and API knowledge with this fun and challenging quiz!
# Web Development and API Concepts Quiz
## Instructions
1. Take out a sheet of paper or open a word document to keep track of your answers.
2. Read each question carefully and select the letter (a, b, c, or d) corresponding to your chosen answer.
3. Mark your chosen letter for each question on your sheet of paper or in your word document.
@JoshuaVaneps
JoshuaVaneps / Interview View Prep Front End Basics.md
Last active September 8, 2023 14:30
study materials for interview prep

Interview Preparation: Web Development and API Concepts

As you prepare for web development interviews, it's essential to have a solid understanding of various web development concepts, from HTML and CSS to JavaScript and API fundamentals. In this blog post, we'll dive into some common interview questions and their answers, helping you build a strong foundation for success.

HTML and CSS

1. The <label> Element

The <label> element in HTML is used to associate a label with an input element, such as a text input or radio button. It improves web accessibility and user experience by providing a clear label for form fields.

@JoshuaVaneps
JoshuaVaneps / three js lighting and camera basics.md
Created September 1, 2023 14:39
A comprehensive breakdown of the different lights used in a three.js scene via the @react-three/fiber library. It covers the roles and attributes of HemisphereLight, PointLight, and SpotLight, explaining their individual contributions to scene illumination. Along with a explanation of the Canvas component from the @react-three/fiber library, cov…

Lighting

1. HemisphereLight

<hemisphereLight intensity={2.15} groundColor="black" />

A hemisphereLight is a light positioned directly above the scene and shines down from the sky. It has two main colors: one for the sky and another for the ground.

@JoshuaVaneps
JoshuaVaneps / React Basic Summary Part 2.md
Last active August 28, 2023 17:38
In this Git Gist, you'll find an extended summary of advanced React topics, building upon the basics covered in Part 1. Explore class component lifecycle, state management with Redux, the distinction between props and state, functional vs. class components, error handling, styling with libraries like Styled Components, and testing React compone…

Part 2: Diving Deeper into React Fundamentals

Description: In this Git Gist, you'll find an extended summary of advanced React topics, building upon the basics covered in Part 1. Explore class component lifecycle, state management with Redux, the distinction between props and state, functional vs. class components, error handling, styling with libraries like Styled Components, and testing React components. Enhance your understanding of React's core concepts and prepare for more complex development tasks.

Component Lifecycle (Class Components)

In React, class components have a lifecycle that consists of different phases, such as creation, updating, and unmounting. These phases allow you to perform actions at specific times during a component's existence.

For instance, the componentDidMount method is called after a component is rendered for the first time. This is a great place to make API calls or set up event listeners:

@JoshuaVaneps
JoshuaVaneps / React Basic Summary Part 1.md
Last active August 28, 2023 17:45
This Git Gist provides an in-depth summary of essential React concepts for beginners. It covers component creation, JSX syntax, passing props, conditional rendering, forms, and more. Each topic is explained with clear explanations, code examples, and a teaching approach to help you grasp the fundamentals of React

Part 1: Getting Started with React Basics

Description: This Git Gist provides an in-depth summary of essential React concepts for beginners. It covers component creation, JSX syntax, passing props, conditional rendering, forms, and more. Each topic is explained with clear explanations, code examples, and a teaching approach to help you grasp the fundamentals of React.

Creating and Nesting Components

In React, we build our applications using components. A component is like a building block of our user interface. It has its own logic and appearance. Think of it as a piece of UI that you can reuse and combine to create larger, more complex interfaces.

For instance, you can create a simple component called MyButton:

@JoshuaVaneps
JoshuaVaneps / JSX-Basics.md
Last active August 28, 2023 17:44
The article explains JSX, a syntax extension for JavaScript used in React, simplifying the creation of dynamic user interfaces by enabling HTML-like expressions in code.

What is JSX?

JSX is a syntax extension for JavaScript, similar to XML, and is widely used in React to describe the structure of user interfaces. It's designed to make building UI components in React more intuitive and readable.

JSX Basics

const element = <h1>Hello, World!</h1>;
@JoshuaVaneps
JoshuaVaneps / Fun Regex Email Tutorial.md
Last active August 23, 2023 23:51
Josh here, droppin' rhymes that sting, Got a regex guide, gonna make it sing. Email addresses, they be wild and free, But with regex magic, tamed they'll be. Email regex, oh what a trick, Gonna break it down, real slick. Anchors, quantifiers, groupin' too, I'm Josh Vaneps, gonna school you true.

The Ultimate Guide to Taming Email Addresses with Regular Expressions

Ahoy there, fellow code wrangler! Ever found yourself lost in the email wilderness, desperately seeking a way to validate those elusive email addresses? Fret not, for your regex adventure begins right here! 🚀

Summary: Unraveling the Email Enigma

Welcome to the enchanted realm of regular expressions tailored for email wizardry. In this mystical guide, we shall unravel the arcane secrets of /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/. Fear not, for we'll dissect each fragment of this cryptic incantation with the precision of a potion master.

Table of Contents: Your Treasure Map