Skip to content

Instantly share code, notes, and snippets.

View tomsapps's full-sized avatar

Tom. tomsapps

View GitHub Profile
@designorant
designorant / reactjs-program-snippets.cson
Last active October 16, 2016 19:55
Snippets used in "Redux + Immutable" and "React Native" courses by Tyler McGinnis in React.js Program
# Generated with Atomizr – https://atom.io/packages/atomizr
".source.js":
# Redux Course Snippets
"Redux Connect Skeleton":
prefix: "rc"
body: '''
import { bindActionCreators } from 'redux'

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@timhwang21
timhwang21 / renderDoctor.js
Last active February 8, 2019 23:33
Diagnose inefficient renders by identifying "changed" props that are actually equal
import React from "react";
import { isEqual } from "underscore";
/**
* HOC for diagnosing unnecessary renders and identifying faulty selectors
*
* Adds a logger function to a component that lists all changed props
* Also checks if changed props are deeply equal
*
* Usage: Decorate the component you are investigating with renderDoctor:
@aclements
aclements / 17503-eliminate-rescan.md
Created October 18, 2016 20:04
Preview of proposal go/golang#17503

Proposal: Eliminate STW stack re-scanning

Author(s): Austin Clements, Rick Hudson

Last updated: 2016-10-18

Discussion at https://golang.org/issue/17503.

Abstract