Skip to content

Instantly share code, notes, and snippets.

View mngarwood's full-sized avatar

Megan Garwood mngarwood

View GitHub Profile
@ghosh
ghosh / micromodal.css
Last active July 1, 2025 17:27
Demo modal styles for micromodal.js and corresponding expected html. If using this, set the `awaitCloseAnimation` in config to true
/**************************\
Basic Modal Styles
\**************************/
.modal {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}
.modal__overlay {
position: fixed;
@hirejordansmith
hirejordansmith / facet-wp-infinite-scroll.js
Last active March 13, 2023 18:25 — forked from robneu/facet-wp-infinite-scroll.js
Infinite scroll for FacetWP
/* globals FWP */
/**
* JavaScript for FacetWP Infinite Scroll
*/
( function( $ ) {
'use-strict';
var throttleTimer = null;
var throttleDelay = 100;
@matthewhudson
matthewhudson / atom-macos-context-menu.md
Created May 25, 2019 08:52 — forked from idleberg/atom-macos-context-menu.md
“Open in Atom” in macOS context-menu

Open in Atom

  • Open Automator
  • Create a new Service
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /usr/local/bin/atom -n "$@"
  • Set “Pass input” to as arguments
  • Save as Open in Atom
@tortuetorche
tortuetorche / Select2.php
Created December 10, 2020 09:35
Select2 v4.0+ helpers for the WebDriver module of Codeception 4.1 (and certainly older versions)
<?php // @codingStandardsIgnoreFile
namespace Helper;
use Exception;
// Select2 helpers for Codeception
// See: https://select2.org
//
// Works with Select2 version 4.0 or greater
// Which is a jQuery based replacement for select boxes.