Skip to content

Instantly share code, notes, and snippets.

View aminsource's full-sized avatar
🎯
Focusing

Hooman Amin aminsource

🎯
Focusing
View GitHub Profile
@archana-nagaraj
archana-nagaraj / Matching a URL - Regex Tutorial.md
Last active December 25, 2022 06:16
This gist is a tutorial about how to match a URL using regular expressions

Regex Tutorial - Matching a URL

This gist tutorial is to explain how to match a URL using regular expression /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/. This is going to be useful when validating URL's in applications such as nodejs.

Summary

A regular expression is a sequence of characters that defines a search pattern. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation. This tutorial will explain different components of a regex and how they are used to match a URL.

Table of Contents

@LeCoupa
LeCoupa / tailwind_cheatsheet.css
Last active March 15, 2024 05:29
Tailwind CSS CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* TAILWIND.CSS
* DOCUMENTATION: https://tailwindcss.com/
* ******************************************************************************************* */
/*
* Available breakpoints
* --------------------
* sm: min-width: 640px;
* md: min-width: 768px;
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active April 15, 2024 13:29
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@bradtraversy
bradtraversy / docker-help.md
Last active April 18, 2024 21:04
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@bradtraversy
bradtraversy / webdev_online_resources.md
Last active April 17, 2024 12:44
Online Resources For Web Developers (No Downloading)
@bradtraversy
bradtraversy / ssh.md
Last active April 15, 2024 13:30
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@bradtraversy
bradtraversy / myscript.sh
Last active April 11, 2024 17:06
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@bradtraversy
bradtraversy / sample.md
Created March 23, 2018 18:17
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@josantonius
josantonius / http-status-codes.json
Last active March 15, 2024 16:37
Full list of HTTP status codes (Español | English)
{
"en": {
"1xx": {
"short": "Informational",
"large": "Request received, continuing process. This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. Since HTTP/1.0 did not define any 1xx status codes, servers must not send a 1xx response to an HTTP/1.0 client except under experimental conditions."
},
"100": {
"short": "Continue",
"large": "The server has received the request headers and the client should proceed to send the request body (in the case of a request for which a body needs to be sent; for example, a POST request). Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient. To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed i