Omar Shishani

How to Watch Sass in Only Certain Folders in VSCode (Live Sass Compiler)

This post is in regards to the “Live Sass Compiler” VSCode plugin. Sometimes we want to “Watch Sass” in only certain folders. For example if we have some plugin files in our project folder, we don’t want to watch all it’s containing Sass files when we click “Watch Sass”. See this post as a video …

How to Watch Sass in Only Certain Folders in VSCode (Live Sass Compiler) Read More »

Man making fire on lake beach in forest.

How to Group State and Pass it Down to Children with React Hooks

Sometimes we have a React component that needs to pass many state values to its parent. Sometimes we even have grandchildren or props several generations deep that need to set state to their grandparent. See this example: Instead of passing all of that state as props to the child component, we can actually just save …

How to Group State and Pass it Down to Children with React Hooks Read More »

Silhouette of girl on purple and red sunset.

What are the Different Parts of HTML Text Input Elements For (in React and normal HTML)?

The HTML “text” input name For a text input, the name is part of the data sent to the server when the form is submitted. The name is paired with the input’s value, and these are sent to the server in the form name=Chris (if your input value was “Chris”). value The value of an …

What are the Different Parts of HTML Text Input Elements For (in React and normal HTML)? Read More »

How to Add Functions (including useState) to TypeScript Interfaces

I was having trouble finding out how to add functions to TypeScript interfaces. When I finally found out how I decided to write this. I’ll show the format immediatly below: We can see that to create a type for a function, we need to use the format functionName(nameForArgument: [argument type]): [type] . We need to …

How to Add Functions (including useState) to TypeScript Interfaces Read More »

How to avoid the JavaScript error “cannot read property ___ of undefined” without nesting logical AND (&&)

If we’re working with pulling data from APIs in JavaScript and React we may encounter the error “cannot read property [property name] of undefined. This occurs when we try to read a value from a nested object, but the object’s parent object has returned undefined: We are trying to pull data that we think should …

How to avoid the JavaScript error “cannot read property ___ of undefined” without nesting logical AND (&&) Read More »

Tops of mountains over clouds with sunset.

iMovie – Audio with Image Overlay – How to Add Image Overlay Over Large Audio Files on iMovie on iPhone

Today we’re going to discuss how to make an iMovie which is an audio file with an image background, using iPhone’s Voice Memo app and a photo. Summary To quickly make an iMovie with an image overlay over a large audio file, drag the image overlay out to 30 seconds or 1 minute, then duplicate …

iMovie – Audio with Image Overlay – How to Add Image Overlay Over Large Audio Files on iMovie on iPhone Read More »

Construction site.

How to Edit a Variable/Function in a Plugin Using WordPress Hooks via functions.php ⚒

It is sometimes possible to modify plugin functions without editing the plugin file directly. It is poor practice to directly edit plugin files, because the edits are overwritten on plugin updates. If the plugin was written well using WordPress hooks, then we are in luck and can modify the functions. I was reading that in …

How to Edit a Variable/Function in a Plugin Using WordPress Hooks via functions.php ⚒ Read More »

Tunnel on road with forest on other side.

How to Use Query Parameters in Your WordPress REST API Route/Endpoint ⚡️

When building a custom WordPress API endpoint to pull data from your WordPress site, you can pass query parameters into your URL or at the end of your slug to act as variables in your PHP API functions (in the format “?parameter-key=parameter-value”). (Query parameters may be referred to as arguments, or could be confused to …

How to Use Query Parameters in Your WordPress REST API Route/Endpoint ⚡️ Read More »