On Mac, if you have Homebrew installed, run:
> brew install highlight
Add to your shell config or .aliases
file:
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
# Github Container registry |
// Example Babel 7 config | |
// Server-Side Preact Rendering | |
// with esm (most of the time) | |
// but Babel handles modules in test | |
// so Jest works | |
// target node version for Babel transpilation | |
const NODE_TARGET = 9; | |
// default settings for preset-env |
<!doctype html> | |
<html> | |
<head> | |
<title>Add Classes (without using classList or jQuery)</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.4.2/mocha.css"> | |
</head> | |
<body> |
<!doctype html> | |
<html> | |
<head> | |
<title>Multiply</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.4.2/mocha.css"> | |
</head> | |
<body> |
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.acceptSuggestionOnEnter": "off", | |
"editor.minimap.enabled": true, | |
"eslint.options": { | |
"configFile": "eslintrc.js" | |
}, | |
"files.insertFinalNewline": true, | |
"files.trimTrailingWhitespace": true, | |
"flow.pathToFlow": "/usr/local/bin/flow", |
brew install -v apparix | |
# Installed to: /opt/foo/Cellar/apparix/11-0/bin/apparix | |
# Add bm/to Bash functions from man page to .bashrc or .local.bash: | |
man -P cat apparix | awk '/BASH-style functions/{p=1} /---/{if(p==1)p=2; else p=0; next} p>1{print}' >> ~/.bash_profile | |
# Reload my bash config: | |
source ~/.bash_profile | |
# Now create a bookmark: |
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |