JSConf Slides, Codes and Notes
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
The PHP Code Sniffer helps identity violations again coding standards (ie. PSR) as well as syntax errors in your code. The following tutorial explains how to setup the PHP Code Sniffer in Sublime Text (on OSX). This has been tested in Sublime Text 2 and Sublime Text 3.
You can use Pear, but that's just confusing, and requires you to have Pear installed. Move on to the next option.
|Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User|
|Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User|
|Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User|
|* Taken from http://paste.laravel.com/b8n|
|* and added a datum attr to submit data along with the RESTful request|
|* Restfulize any hiperlink that contains a data-method attribute by|
|* creating a mini form with the specified method and adding a trigger|
|* within the link.|
|* Requires jQuery!|
|* Ex in Laravel:|
|/* Lets not rely on paths in the database, they can be very wrong when moving between dev/stage/live environments */|
|/* The following two variables are backward to my thinking, but hey, what ya gonna do? */|
|define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . ''); // This is NOT the 'wordpress admin area' home, but the site's home|
|define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/SECRETDIRECTORY'); // This isn't the site's URL but the WordPress admin area URL|
|/* MySQL settings */|
|// Your local machine's settings|