E: me@sabisin.com | T: +49.151.68651209

Listing globally installed NPM packages and version

npm list -g --depth=0

DDB Disrupt
/dɪsˈrʌpt/

PHP Debug to console

Simple helper to debug to the console

@param  Array, String $data
@return String

function debug_to_console( $data ) {
   if ( is_array( $data ) )
      $output = "";
   else
      $output = "";
    echo $output;
}

debug_to_console( "Test" );

Downgrade Node.js to a Specific Version Using Homebrew

So here it goes, Install Homebrew versions:

$ brew tap homebrew/versions

Look for the package you need:

$ brew search node

That is going to return a list of packages with keywords matching “node”

$ leafnode node node010 node04 node06 node08 nodebrew nodenv

Install the package with the version you need:

$ brew install node010
$ brew link --overwrite node010

Done.

The 100+ Best Slides From Cannes Lions 2016