On Mac, if you have Homebrew installed, run:
> brew install highlight
Add to your shell config or .aliases file:
| # Dockerfile for Bun (package manager) and Node.js (for runtime Next.js) | |
| # this image includes Bun 1.x, Node.js 22, on Alpine, with Git | |
| FROM imbios/bun-node:1-22-alpine-git AS base | |
| RUN apk update && apk upgrade && apk add --no-cache dumb-init | |
| RUN addgroup --system --gid 1002 nodejs | |
| RUN adduser --system --uid 1002 nextjs | |
| # Install dependencies only when needed | |
| FROM base AS builder | |
| WORKDIR /app |
| #!/usr/bin/env bash | |
| _bun_complete() { | |
| local cur prev opts | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" | |
| # Define the main commands | |
| local commands="add build create exec init install link outdated patch pm publish remove repl run test unlink update upgrade x" |
| 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: |