Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
| 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: |
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.
| # Generated with Atomizr – https://atom.io/packages/atomizr | |
| ".source.js": | |
| # Redux Course Snippets | |
| "Redux Connect Skeleton": | |
| prefix: "rc" | |
| body: ''' | |
| import { bindActionCreators } from 'redux' |
| #!/bin/bash | |
| # Sign a file with a private key using OpenSSL | |
| # Encode the signature in Base64 format | |
| # | |
| # Usage: sign <file> <private_key> | |
| # | |
| # NOTE: to generate a public/private key use the following commands: | |
| # | |
| # openssl genrsa -aes128 -passout pass:<passphrase> -out private.pem 2048 | |
| # openssl rsa -in private.pem -passin pass:<passphrase> -pubout -out public.pem |
| # <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |
| # Hey Chi-Town, I made this rake task, and it has saved some of us a lot of time. | |
| # Some people asked me to post it, so here it is: | |
| desc 'You only live once' | |
| task 'yolo' => ['db:drop', 'db:create', 'db:migrate', 'db:seed'] do | |
| exec "bundle exec shotgun config.ru" | |
| end | |
| # NOTE: If db:create or db:drop use "exec" instead of "system", this will not work. | |
| # If you decide to fix this, google why this happens first. |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
querymutationReference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| { | |
| /* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
| * | |
| * This is a pretty good set, especially considering that many emacs bindings | |
| * such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
| * perhaps a few more, are already built into the system. | |
| * | |
| * BEWARE: | |
| * This file uses the Option key as a meta key. This has the side-effect | |
| * of overriding Mac OS keybindings for the option key, which generally |