Skip to content

Instantly share code, notes, and snippets.

create package.js

npm init -y

create tsconfig.json

tsc --init

edit: "sourceMap": true

@paulmaclean
paulmaclean / WP_Page_Duplicator.php
Last active January 11, 2018 08:02
Wordpress Page Duplicator Class. Class for duplicating pages, attachments and post meta
<?php
class WP_Page_Duplicator {
/**
* @param \WP_Post $post
* @param string $post_type
* @param int $parent_id
* @param string $post_name_postfix
* @param bool $add_post_name_postfix
* @param string $status
@paulmaclean
paulmaclean / xdebug_php7_acquia_phpstorm.md
Last active April 15, 2019 14:38
Xdebug for PHP 7 in Acquia DevDesktop with PHPStorm
  1. Download and make Xdebug
wget http://xdebug.org/files/xdebug-2.5.5.tgz
tar xvf xdebug-2.5.5.tgz
rm xdebug-2.5.5.tgz
cd xdebug-2.5.5
/Applications/DevDesktop/php7_0/bin/phpize
./configure --enable-xdebug CC="gcc -arch i386" CXX="g++ -arch i386" -with-php-config=/Applications/DevDesktop/php7_0/bin/php-config
make