Skip to content

Instantly share code, notes, and snippets.

View scottymeyers's full-sized avatar
🪐

Scott Meyers scottymeyers

🪐
View GitHub Profile
@scottymeyers
scottymeyers / image-data-resize.js
Created March 16, 2022 02:33 — forked from mauriciomassaia/image-data-resize.js
ImageData resize on Canvas
export async function resizeImageData (imageData, width, height) {
const resizeWidth = width >> 0
const resizeHeight = height >> 0
const ibm = await window.createImageBitmap(imageData, 0, 0, imageData.width, imageData.height, {
resizeWidth, resizeHeight
})
const canvas = document.createElement('canvas')
canvas.width = resizeWidth
canvas.height = resizeHeight
const ctx = canvas.getContext('2d')
@scottymeyers
scottymeyers / gitflow-breakdown.md
Created January 15, 2018 15:21 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@scottymeyers
scottymeyers / _flightplan_deployments.md
Last active January 15, 2018 16:41 — forked from wiledal/__flightplan_deployments.md
Set up your local machine and remote machine for quick deployments with Flightplan

Deploying

For easy deployments we're using flightplan, install with npm install -g flightplan.

Before deploying you need to make your computer a friend to the server.
You only need to do these steps once per machine.

We are going to be adding your public key to the remote server for passwordless SSH.
Then we are going to set up your SSH to allow for Agent Forwarding, so that your git commands are tunneled to the server.

When a step says Locally it means you should execute the command on your local machine.