Skip to content

Instantly share code, notes, and snippets.

Avatar

Bernie Bernstein bbernstein

View GitHub Profile
View bwapi.yaml
swagger: '2.0'
info:
description: This is the external API available for partners to work with BodesWell platforms.
version: 1.0.0
title: BodesWell API
termsOfService: https://www.bodeswell.io/terms-conditions
contact:
email: support@bodeswell.io
host: app.bodewell.io
basePath: /api/ext
View crop-zoom-izzy-panners.js
/**
* by Bernie Bernstein. Find me in ZoomOSC Power Users slack channel:
* https://zoomoscpowerusers.slack.com/join/shared_invite/zt-ibb2jhgm-NEij9uT~Fgp98xVlkNCGVA#/
*
* The gist and other versions could get out-of-date.
* You can find the original here:
* https://github.com/bbernstein/izzy-crop-zoom-gallery/
* (in the file cropper.js)
*
* Updates:
@bbernstein
bbernstein / autocrop.ts
Last active Apr 1, 2021
Zoom auto-crop algorithm
View autocrop.ts
type LayoutDescription = {
area: number;
cols: number;
rows: number;
width: number;
height: number;
}
type CropValues = {
left: number;