Skip to content

Instantly share code, notes, and snippets.

View mikoloism's full-sized avatar
💻
@ry 🥇

mikoloism mikoloism

💻
@ry 🥇
View GitHub Profile
@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',
},
@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 / 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 / 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 / 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 / pinterest-api-router.md
Last active June 4, 2021 15:57
my mind about how pinterest router work (with express-js)

Pinterest API router/controller

my idea about how pintreset collection/boards api router work

i'm using express-js

Coding

ES6 (babel)

@mikoloism
mikoloism / barcode-scanner(reader).md
Last active April 2, 2023 13:44 — forked from akirattii/BarcodeScanner.js
HTML: Barcode Scanner on modern browser
@mikoloism
mikoloism / chrome-extension.md
Last active June 4, 2021 15:03 — forked from akirattii/background.js
an example of chrome extension, which can be opened as new tab by click its browser icon.

Chrome Extension opener

an example of chrome extension, which can be opened as new tab by click its browser icon.

forked from @akirattii

Coding

@mikoloism
mikoloism / read-write-mysql-blob.md
Last active June 10, 2021 04:16 — forked from akirattii/example-read-write-mysql-blob.js
node-mysql example: How to write & read BLOB (forked)

How Read and Write Blob on MySQL using NodeJS

this gist forked from @akirattii

@mikoloism
mikoloism / how-record-audio-with-javascript(html).md
Last active June 4, 2021 14:30 — forked from bryanjenningz/record-stop.html
how record audio with javascript (html)

How record audio with javascript in browser(html)

Coding

HTML Elements

<div class="recorder__container">
  <button class="recorder__button recorder__button--record" id="recorder-record-button">Record</button>
  <button class="recorder__button recorder__button--paly" id="recorder-play-button">Play</button>