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
AnalyzePlatypus / getImageKitModifiers.js
Created Sep 5, 2019
Generate image editing modifiers for ImageKit.io
View getImageKitModifiers.js
/*
Usage:
import getImageKitModifierQueryString from "getImageKitModifiers.js";
const IMAGEKIT_CDN_ROOT = "https://ik.imagekit.io/my-app/";
const myImageKey = "image.jpg";
const modifierQueryString = getImageKitModifierQueryString({
width: 45,
@AnalyzePlatypus
AnalyzePlatypus / vue-click-outside.md
Created Mar 23, 2019
Vue.js 2.7: Detect clicks outside an element (Close modals, popups, etc.)
View vue-click-outside.md

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.

Example:

You can’t perform that action at this time.