Skip to content

Instantly share code, notes, and snippets.

View mikoloism's full-sized avatar
🌱

mikoloism mikoloism

🌱
View GitHub Profile
@mikoloism
mikoloism / html-tag-regex.md
Last active June 4, 2021 16:03
How detect HTML tags with javascript regex

How find HTML tags with javascript regex?

Coding

1. Regular Expression

regex from regex101

const regex = /(?:<[^\s].*?>\n?.*\n?<\/.*?>|<[^\s].*?[^\s][" ]{0,1}\/>)/;
@mikoloism
mikoloism / localhost.md
Last active April 25, 2021 15:33
how create localhost with programming language CLI

How create a localhost

How create a localhost from current directory with custom port

Using with Programming CLI and Builts Apps in any system

With Python

  • code :

$ python -m SimpleHTTPServer 8080 # or any port number you want to be

@mikoloism
mikoloism / md-cheatsheet.md
Last active April 25, 2021 17:07
Markdown cheat sheet

Markdown cheatsheet ⭐

Headings

Markdown Markup Preview
# Heading 1 <h1>HEADING 1</h1>

HEADING 1

# Heading 2 <h2>HEADING 2</h2>

HEADING 2

# Heading 3 <h3>HEADING 3</h3>

HEADING 3

# Heading 4 HEADING 4 HEADING 4
@mikoloism
mikoloism / README.md
Last active October 15, 2020 20:30
MongoDB not SQL Database

MongoDB

i think, everyone know what is mongodb and not need to say about it and how work?! 🤔 then, i think anyone should learn MongoDB and how create a DB with mongodb 👍

Installation

at the first, we need to install mongodb in local-env, but you can you cloud-env 👍 we are using Ubuntu and i don't know about windows and mac, but, maybe this is common way 😉

Install Mongodb-org pkg

this installation way very descriptionally and that is available on MongoDB.org, i tried to install this package but i given ERROR!!! 💥, then i use second way:

@mikoloism
mikoloism / 1-Destructure_Object.md
Last active April 2, 2023 13:39
HOW-WRITE-CLEAN-CODE?

Destructure Javascript Object

Object for Destructuring

// common-base
const object = {
  name: {
  first: 'john',
  last: 'doe',
},