Skip to content

Instantly share code, notes, and snippets.

Ain't nobody got time for statuses

Michoel Samuels AnalyzePlatypus

Ain't nobody got time for statuses
  • Jerusalem, Israel
Block or report user

Report or block AnalyzePlatypus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AnalyzePlatypus / getImageKitModifiers.js
Created Sep 5, 2019
Generate image editing modifiers for
View getImageKitModifiers.js
import getImageKitModifierQueryString from "getImageKitModifiers.js";
const myImageKey = "image.jpg";
const modifierQueryString = getImageKitModifierQueryString({
width: 45,
AnalyzePlatypus /
Created Mar 23, 2019
Vue.js 2.7: Detect clicks outside an element (Close modals, popups, etc.)

Detecting outside clicks in Vue.js

See this StackOverflow thread

First off, include the directive at the end of this gist.

  1. On your open button, make sure to use @click.stop to prevent the open click event from closing your modal.
  2. On your modal, add the v-click-outside directive and points it at a function to call when clicked outside.


You can’t perform that action at this time.