Skip to content

Instantly share code, notes, and snippets.

@erictherobot
erictherobot / gist:6ea2d2e663d7bd081269daf843adaec3
Created November 24, 2017 16:35
Fixes Definition for rule 'jsx-a11y/href-no-hash' was not found (jsx-a11y/href-no-hash)
(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@site_account">
<meta name="twitter:creator" content="@individual_account">
<meta name="twitter:url" content="https://example.com/page.html">
<meta name="twitter:title" content="Content Title">
<meta name="twitter:description" content="Content description less than 200 characters">
<meta name="twitter:image" content="https://example.com/image.jpg">
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/page.html">
<meta property="og:title" content="Content Title">
<meta property="og:image" content="https://example.com/image.jpg">
<meta property="og:description" content="Description Here">
<meta property="og:site_name" content="Site Name">
<meta property="og:locale" content="en_US">
@erictherobot
erictherobot / nextjs-installer.sh
Created October 16, 2017 18:16
nextjs-installer.sh <yourappname>
#!/bin/bash
# ./nextjs-installer <project-name>
# Create a new Next.js Project
echo "Creating Next.js Project: $1 ..."
mkdir $1
cd $1
mkdir pages
mkdir components
mkdir static
apm install atom-beautify prettier-atom atom-spotify2 atom-transpose case-keep-replace change-case copy-path duplicate-line-or-selection editorconfig file-icons git-plus highlight-selected local-history project-manager related set-syntax sort-lines sublime-style-column-selection tab-foldername-index sync-settings toggle-quotes atom-wrap-in-tag atom-ternjs autoclose-html autocomplete-modules color-picker docblockr emmet emmet-jsx-css-modules es6-javascript js-hyperclick hyperclick pigments linter-eslint tree-view-copy-relative-path lodash-snippets react-es7-snippets atom-jest-snippets dracula-theme
@erictherobot
erictherobot / Publish NPM React Component
Created November 25, 2016 18:05
Publish React Component in NPM
First run:
npm install -g generator-react-component
And then running it to create a skeleton project:
yo react-component
Developing:
npm start
http://localhost:8000
@erictherobot
erictherobot / index.js
Created December 13, 2016 02:51
hyper.js magenta theme
exports.decorateConfig = (config) => {
return Object.assign({}, config, {
borderColor: 'magenta',
cursorColor: 'magenta',
css: `
${config.css || ''}
.tabs_nav .tabs_list .tab_text {
color: magenta;
}
.tabs_nav .tabs_title {
@erictherobot
erictherobot / Start A New Next.js Project
Created November 19, 2016 01:42
nextjs-installer.sh
#!/bin/bash
# ./nextjs-installer <project-name>
# Author: Eric David Smith
# Create a new Next.js Project
echo "Creating Next.js Project: $1 ..."
mkdir $1
cd $1
mkdir pages
mkdir components

Keybase proof

I hereby claim:

  • I am erictherobot on github.
  • I am erictherobot (https://keybase.io/erictherobot) on keybase.
  • I have a public key whose fingerprint is 5C2C 5100 4C9A BED6 54A3 4954 A5AE 702E 0F50 F8BD

To claim this, I am signing this object: