Skip to content

Instantly share code, notes, and snippets.

@timatron
timatron / xxx_classifai_ai_filters.php
Last active September 6, 2023 23:13
Filter the results from IBM Watson in the Classifai AI WP Plugin
<?php
/**
* Functions for integrating classafai AI plugin
*
* @package Daily_Upside
*/
/**
* Filter the classified data and check for tags. If a tag exists for the entity, concept, keyword, or category, return it. Also, if there is a disambiguation name, update the name to match the tag.
*
tschwartz@~/broadway (master *=)\$ apm install lenfest-institute
Installing Lenfest Institute for Journalism
Downloading WordPress...
/var/www$ wp core download --path=lenfest-institute
Creating directory '/var/www/lenfest-institute/'.
Downloading WordPress 5.1.1 (en_US)...
Using cached file '/var/www/.wp-cli/cache/core/wordpress-5.1.1-en_US.tar.gz'...
Success: WordPress downloaded.

Keybase proof

I hereby claim:

  • I am timatron on github.
  • I am timatron (https://keybase.io/timatron) on keybase.
  • I have a public key ASDzV17mJQLIZtf_6F2pogL8i1jv75hh1IGu52RrwmdjuQo

To claim this, I am signing this object:

@timatron
timatron / gist:e362ddd3db173de9ad26
Created January 28, 2016 20:00
PHP CS Sublime Config
{
// Plugin settings
// Turn the debug output on/off
"show_debug": true,
// Which file types (file extensions), do you want the plugin to
// execute for
"extensions_to_execute": ["php"],