Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View bbernstein's full-sized avatar

Bernie Bernstein bbernstein

View GitHub Profile
Coverage Badges
@bbernstein
bbernstein / bwapi.yaml
Last active March 9, 2021 22:50
bw-api
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
/**
* 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 April 8, 2022 02:59
Zoom auto-crop algorithm
type LayoutDescription = {
area: number;
cols: number;
rows: number;
width: number;
height: number;
}
type CropValues = {
left: number;