Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Hostačný scr4bble

  • Origo hf.
  • Brno (Czech republic)
View GitHub Profile
@scr4bble
scr4bble / readable-dates.php
Created Feb 6, 2018
Adminer plugin that replaces UNIX timestamps with human-readable dates.
View readable-dates.php
<?php
/** This plugin replaces UNIX timestamps with human-readable dates in your local format.
* Mouse click on the date field reveals timestamp back.
*
* @link https://www.adminer.org/plugins/#use
* @author Anonymous
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
@chrisjhoughton
chrisjhoughton / wait-el.js
Last active Apr 14, 2021
Wait for an element to exist on the page with jQuery
View wait-el.js
var waitForEl = function(selector, callback) {
if (jQuery(selector).length) {
callback();
} else {
setTimeout(function() {
waitForEl(selector, callback);
}, 100);
}
};