It requires:
eslint-config-prettierto avoid collision with other eslint ruleseslint-plugin-prettierto add the eslint rulesprettierpackage
yarn add --dev eslint-config-prettier eslint-plugin-prettier prettier| # Find common ancestor of 2 branches: | |
| git rev-parse BRANCH1 BRANCH2 | |
| # Last commit date (relative time) on BRANCH | |
| git --no-pager for-each-ref BRANCH --format='%(committerdate:relative)' | |
| # Last commit date on BRANCH | |
| git --no-pager show --format='%ai' | |
| # Last commit author on BRANCH | |
| git --no-pager show --format='%an' |
| export const whyIsItRecalculating = ( | |
| funcName, | |
| ...fieldNames | |
| ) => decoratedFunc => { | |
| let prevValues; | |
| return (...values) => { | |
| // eslint-disable-next-line no-console | |
| console.group(`whyIsItRecalculating ${funcName}`); | |
| if (prevValues) { | |
| if (prevValues.length < values.length) { |
| import React, { Fragment, Component, createContext } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| const ThemeContext = createContext('light'); | |
| const ThemedItem = props => ( | |
| <ThemeContext.Consumer>{ | |
| (theme) => <p>{theme}</p> | |
| }</ThemeContext.Consumer> |
IRC is cool, but IRC is volatile. Here is how to install [ZNC](http://wiki.znc.in) on an LXC machine.
> Note that irssi/weechat/whateverircclient in a screen/tmux would do as > well
First, ask for a LXC container to [[email protected]](mailto:[email protected]).
Once you get your container, follow those steps:
| #!/bin/bash | |
| BRANCH="$1" | |
| ORIGINAL_BRANCH="develop" | |
| if [[ -z "${BRANCH}" ]]; then | |
| echo "You must provide a branch as first argument" | |
| echo "" | |
| echo " $0 features/develop/new-sidebars" | |
| exit 1; | |
| fi |
| #!/usr/bin/env iojs | |
| var lookupDirs = ['app/shared/lib', 'app/shared']; | |
| var resolveModuleSource = require('../babel-hooks'); | |
| require('babel/register')({ | |
| stage: 0, | |
| resolveModuleSource: resolveModuleSource(lookupDirs) | |
| }); | |
| var fs = require('fs'); |
| ### Keybase proof | |
| I hereby claim: | |
| * I am themouette on github. | |
| * I am themouette (https://keybase.io/themouette) on keybase. | |
| * I have a public key whose fingerprint is 7367 4DE9 B737 D321 8FEC 6860 0FE9 A9C6 0ED6 5AFD | |
| To claim this, I am signing this object: |
| /** | |
| * Hook babel compilation into require. | |
| * | |
| * To disable cache, see https://babeljs.io/docs/usage/require/#environment-variables | |
| * | |
| * ``` javascript | |
| * const lookupDirs = ['app/server', 'app/shared/lib', 'app/shared']; | |
| * const resolveModuleSource = require('babel-hooks'); | |
| * | |
| * require('babel/register')({ |
| /** | |
| * Simple actions test utils. | |
| * | |
| * This is definitely not the best api, but this is simple. | |
| * | |
| * FIXME override action `_dispatch` and `_dispatchAsync` to remove warning | |
| * FIXME and to deliver a cleaner api | |
| */ | |
| import _ from 'lodash'; |