Skip to content

Instantly share code, notes, and snippets.

@nicbabchenko
nicbabchenko / debounce.js
Created March 14, 2019 11:11 — forked from beaucharman/debounce.js
An ES6 implementation of the debounce function. "Debouncing enforces that a function not be called again until a certain amount of time has passed without it being called. As in 'execute this function only if 100 milliseconds have passed without it being called.'" - CSS-Tricks (https://css-tricks.com/the-difference-between-throttling-and-debounc…
function debounce(callback, wait, immediate = false) {
let timeout = null
return function() {
const callNow = immediate && !timeout
const next = () => callback.apply(this, arguments)
clearTimeout(timeout)
timeout = setTimeout(next, wait)
#!/bin/bash
# Name of your app.
APP="Image Resizer Tech"
# The path of your app to sign.
APP_PATH="YOUR_PATH_TO_APP_AFTER_IT_WAS_PACKAGED/Image Resizer Tech.app"
# The path to the location you want to put the signed package.
RESULT_PATH="YOUR_RESULT_PATH/app-builds/mac/$APP.pkg"
# The name of certificates you requested (use your ones).
APP_KEY="3rd Party Mac Developer Application"