Skip to content

Instantly share code, notes, and snippets.

:electron:
Working

Muhammad Taqi Abdul Aziz taqiabdulaziz

:electron:
Working
Block or report user

Report or block taqiabdulaziz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@taqiabdulaziz
taqiabdulaziz / express-wrapper.js
Created Jul 3, 2019
Bring your error to client
View express-wrapper.js
const logger = require('./logger');
const { httpStatus } = require('../configs/codes');
const { errorResponse } = require('./response');
const wrap = fn => (req, res) => {
const idRequest = req.request_id;
const {
baseUrl,
originalUrl,
method,
@taqiabdulaziz
taqiabdulaziz / react.js
Last active Jul 3, 2019
React-draft-wysiwyg
View react.js
import React, { Component } from 'react';
import logo from './logo.svg';
import { EditorState } from 'draft-js';
import { Editor } from 'react-draft-wysiwyg';
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
import { stateToHTML } from 'draft-js-export-html';
import axios from 'axios'
You can’t perform that action at this time.