Skip to content

Instantly share code, notes, and snippets.

View MunifTanjim's full-sized avatar
🧐
What's happening?

Munif Tanjim MunifTanjim

🧐
What's happening?
View GitHub Profile
@MunifTanjim
MunifTanjim / RoutineTermSectionEdit.js
Created April 28, 2019 20:47
React Hooks Component Example
import Form from 'components/Form/Form'
import HeaderGrid from 'components/HeaderGrid'
import { connect as connectFormik, Formik } from 'formik'
import { defaultsDeep, get, groupBy, map, zipObject } from 'lodash-es'
import React, { useCallback, useEffect, useMemo, useReducer } from 'react'
import { connect } from 'react-redux'
import {
Button,
Dropdown,
FormField,

Keybase proof

I hereby claim:

  • I am muniftanjim on github.
  • I am muniftanjim (https://keybase.io/muniftanjim) on keybase.
  • I have a public key ASBtCQ0HCm8FntYup1HO5tEDjWOwW8k0nRNiUT5QvnfK6wo

To claim this, I am signing this object:

const getDigitsArray = numberString => numberString.split('')
const getProbableNumbers = (placeholder, numberString) => {
let probableNumbers = []
let stuffedDigitsArray = getDigitsArray(numberString).map(
digit =>
digit == placeholder ? [null, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9] : [digit]
)
@MunifTanjim
MunifTanjim / index.html
Last active May 26, 2017 11:42
Gist Embedder - Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Gist Embedder</title>
<script src='https://unpkg.com/gist-embedder/dist/gist-embedder.min.js'></script>
</head>
<body>