Skip to content

Instantly share code, notes, and snippets.

View mikedoubintchik's full-sized avatar

Mike Doubintchik mikedoubintchik

View GitHub Profile
@tylerforret
tylerforret / functions.php
Last active November 17, 2023 09:52
Allow <span> Tags in Wordpress Post/Page Editor
<?php
/*Allow Span tags in editor*/
function myextensionTinyMCE($init) {
// Command separated string of extended elements
$ext = 'span[id|name|class|style]';
// Add to extended_valid_elements if it alreay exists
if ( isset( $init['extended_valid_elements'] ) ) {
$init['extended_valid_elements'] .= ',' . $ext;
} else {
@zeroseis
zeroseis / disable-auto-android-file-transfer.md
Created September 14, 2015 17:28
Disable auto start for Android File Transfer
  • Close Android File Transfer
  • Open Activity Monitor and kill “Android File Transfer Agent”
  • Go to where you installed “Android File Transfer.app” (I have it under /Applications)
  • Ctrl+click –> “Show package contents”
  • Go to Contents/Resources
  • Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
  • Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
@nosp4mSnippets
nosp4mSnippets / finalevent.js
Created June 23, 2013 22:10
JS: wait final event
// Here's a modification of CMS's solution that can be called in multiple places in your code:
// Wait for final event example during resize
//
var waitForFinalEvent = (function () {
var timers = {};
return function (callback, ms, uniqueId) {
if (!uniqueId) {
uniqueId = "Don't call this twice without a uniqueId";
}