Skip to content

Instantly share code, notes, and snippets.

View developerruhul's full-sized avatar
💻
Freelancing fullstack web development

Developer Ruhul developerruhul

💻
Freelancing fullstack web development
View GitHub Profile
const features = {
SUPPORT_PAGE: 1,
OTHER_PAGE: 2,
EXTRACT: 4,
};
const permission = {
1: {
forbidden: '*',
allowed: [4],
function addBlocker() {
let html = document.querySelector("html")
html.style.pointerEvents = "none"
const handleClick = e => {
html.style.pointerEvents = "auto"
console.log({
target: document.elementFromPoint(e.clientX, e.clientY),
x: e.clientX,
y: e.clientY,
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
</head>
<body>
<div>
<div class="title">title1</div>
var linked = textToReplace.replace(/#(\S*)/g,'<a href="http://twitter.com/#!/search/$1">$1</a>');

POST Related

GET /api/get-followings

response -

[
  { "follow_to": 24, "follow_to_username": "takkar" },
  { "follow_to": 11, "follow_to_username": "nobita" },

api/post-it POST

body ->

{
    desc: "hello asiq😵😵😵",
    image: "(binary)",
    filter: "filter-aden",
 location: "Unnamed Road, Bangladesh",
@developerruhul
developerruhul / instagram-clone-data.md
Created December 13, 2018 15:29
instagram clone redux data store

instagram-clone Structure

user profile

enter image description here

data structure of user profile

"User": {
@developerruhul
developerruhul / instagram-clone-data.md
Created December 13, 2018 15:29
instagram clone redux data store

instagram-clone Structure

user profile

enter image description here

data structure of user profile

"User": {
@developerruhul
developerruhul / script.js
Created October 10, 2018 13:40
creating a third object from properties of other 2 objects by using es6 spread operator
const obj1 = {name: "miki", age: 32, gf: 32};
const obj2 = {fbId: "omgwhatanId", fbAge: 21, fbGf: 124};
// gf and fbGf are the properties we don't want
const {gf, ...obj1Properties} = obj1;
const {fbGf, ...obj2Properties} = obj2;