Skip to content

Instantly share code, notes, and snippets.


Sumit Gupta sumit-gupta91

View GitHub Profile
sumit-gupta91 / gist:06a8ad3c09866fcde18885c02d21a33a
Created Jun 1, 2020
A way to reduce complexity while exporting a component
View gist:06a8ad3c09866fcde18885c02d21a33a
import { bindActionCreators, compose } from 'redux';
const mapStoreToProps = data => ({

The Phoenix Project

Chapters 1-5

  • Bill goes out of his way during his conversation with Dick to understand the real business impact of the payroll outage.
  • IT Operations is frequently viewed as a business cost/liability rather than a valued asset, as evidenced by language used to discuss infrastructure. Steve says "IT ... should be like the toilet ... I don't ever
View sw-precache-plugin-runtime-caching
new SWPrecacheWebpackPlugin({
cacheId: 'rodimus',
filename: 'serviceWorker.js',
staticFileGlobsIgnorePatterns: [/\.map$/, /\.json$/],
importScripts: ['offline/offline.00000002.js'],
dontCacheBustUrlsMatching: /./,
minify: true,
runtimeCaching: [{
urlPattern: new RegExp('/'),
sumit-gupta91 / ComposeDropDownParent.jsx
Created Dec 5, 2017
How a parent component can reuse two dropdown components
View ComposeDropDownParent.jsx
class ParentComponent extends Component {
state = {
active: true,
toggleVisibility = () =>
this.setState(({ active}) => ({
active: !active
View ssrp_review.css
// .ssrp__review {
// padding: 28px;
// display: flex;
// flex-direction: column;
// align-items: center;
// &:nth-child(2) {
// margin-top: 32px;
// }
sumit-gupta91 / 0_reuse_code.js
Created Dec 14, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console