Skip to content

Instantly share code, notes, and snippets.

@Ronin1702
Ronin1702 / Environment_Variables_Frontend_vs_Backend.md
Created October 29, 2023 13:03
Environment Variables in Frontend vs Backend

Environment Variables in Frontend vs Backend

Environment variables are a way to store configuration settings for your applications. They are key-value pairs that are outside of the application code. Although environment variables work in a similar fashion in both frontend and backend applications, there are some specific considerations for each.

Table of Contents

  1. Backend Environment Variables
@Ronin1702
Ronin1702 / package.json-update.md
Last active September 26, 2023 12:12
Update All dependencies in `package.json` at once

Update all dependencies in package.json at once

Install npm-check-update package.

-g is a globale tag, I recommend install this globally, and if you don't want to use this package gloabbly, take this tag off

npm i -g npm-check-update

Get update list and install

@IVignollesJeong
IVignollesJeong / HexValueRegex.md
Last active September 6, 2023 22:39
This is a Gist of Hex Value regular expressions

Hex Value matching Regex Tutorial

Regex (Regular Expressions) are a series of special characters used to define a search pattern. Hex values are typically used to identify colors, though they have other uses as well. This Gist was created to serve as a tutorial for understanding the components of regular expressions!

Summary

Hex values are typically used to identify elements such as color. You may have seen them in CSS files or even in the paint section at home improvement stores! These values begin with a # followed by a mix of six numbers or letters.

@Ronin1702
Ronin1702 / URL-matching-RegEx-Tutorial.md
Last active September 11, 2023 22:30
URL Matching RegEx Tutorial by Kai Chen

RegEx Tutorial: Understanding URL Matching

Tweet about this

What is regex?

A regex, which is short for regular expression, is a sequence of characters that defines a specific search pattern. When included in code or search algorithms, regular expressions can be used to find certain patterns of characters within a string, or to find and replace a character or sequence of characters within a string. They are also frequently used to validate input. Such as email addresses, URLs, usernames, etc.

  • Purpose of the tutorial: This tutorial aims to dissect and explain the components of a specific regular expression (regex) used for URL matching.
@derekmeduri
derekmeduri / RegexTutorial.MD
Last active August 31, 2023 00:14
Matching a URL with Regex Tutorial

Matching a URL with Regular Expression Tutorial

This guide was created to help myself and you learn more about regular expressions and how to use them. Regular expressions are special characters that define a search pattern.

Summary

The regular expression, or regex for short, below is a search pattern for matching a Url. Since this regular expression is between two slashes it is called a regular expression literal. It is made up of anchors, grouping constructions, bracket expressions, and quantifiers. We will look at each component of the regular expression so they make more sense.
/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/