Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
I may be slow to respond.

Eric David Smith erictherobot

🏠
I may be slow to respond.
View GitHub Profile
View heart.json
{"v":"4.6.6","fr":25,"ip":0,"op":22,"w":148,"h":148,"nm":"2.0 A-首页-inline播放","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 1","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[74,74,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[25,25,100]}},"ao":0,"shapes":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"n":["0p667_1_0p333_0","0p667_1_0p333_0"],"t":2,"s":[0,0],"e":[29,29]},{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.333,0.333],"y":[0,0]},"n":["0p667_1_0p333_0","0p667_1_0p333_0"],"t":7,"s":[29,29],"e":[0,0]},{"t":16}]},"p":{"a":1,"k":[{"i":{"x":0.52,"y":1},"o":{"x":0.6,"y":0},"n":"0p52_1_0p6_0","t":1,"s":[0,0],"e":[0,189],"to":[0,31.5],"ti":[0,-40]},{"i":{"x":0.38,"y":1},"o":{"x":0.333,"y":0},"n":"0p38_1_0p333_0","t":6,"s":[0,189],"e":[0,240],"to":[0,40],"ti":[0,-8.5]},{"t":15}]},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":0,"k":[1,0.1921569,0.2666667,1]},"o":{"a":0,"k":100},"r":1,"nm":"填充 1","mn":"AD
View gist:0963b08a3d3383183b83593f06e19e1c
8(a) Section 8 (a) of the Small Business Act; Federal Contracting Preference Program for Disadvantaged Businesses
AAR After Action Report
ACAT Acquisition Category
ACO Administrative Contracting Officer
ACQ Acquisition
ACS Assistant Chief of Staff
ACWP Actual Cost of Work Performed
ADA Americans with Disabilities Act
ADPE Automated Data Processing Equipment
View next.config.js
const withSass = require('@zeit/next-sass')
module.exports = withSass()
View next.config.js
const withTs = require('next-typescript');
module.exports = withTs({ /* additional config*/ })
View next.config.js
module.exports = {
webpack(config, options) {
const { dir, defaultLoaders } = options
config.resolve.extensions.push('.ts', '.tsx')
config.module.rules.push({
test: /\.+(ts|tsx)$/,
include: [dir],
exclude: /node_modules/,
use: [
defaultLoaders.babel,
@erictherobot
erictherobot / gist:6ea2d2e663d7bd081269daf843adaec3
Created Nov 24, 2017
Fixes Definition for rule 'jsx-a11y/href-no-hash' was not found (jsx-a11y/href-no-hash)
View gist:6ea2d2e663d7bd081269daf843adaec3
(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
View TWITTER CARD
<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">
View FB OG TAGS
<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 Oct 16, 2017
nextjs-installer.sh <yourappname>
View nextjs-installer.sh
#!/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