The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors on Mac.)
| auto_register = new Object(); | |
| auto_register.add_member = function(member_id, group_id, ignore, callback) { | |
| x = new XMLHttpRequest(); | |
| x.onreadystatechange = function() { | |
| if (x.readyState == 4) { | |
| if (x.status == 200) { | |
| if (callback) | |
| callback(member_id, group_id); | |
| console.log('success', member_id); | |
| } else |
| <?php | |
| return Symfony\CS\Config\Config::create() | |
| ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
| ->fixers([ | |
| 'short_array_syntax', | |
| 'ordered_use', | |
| ]) | |
| ; |
| <?php | |
| use Swagger\Annotations as SWG; | |
| /** | |
| * @SWG\Swagger( | |
| * basePath="/v1", | |
| * host="api.local", | |
| * schemes={"http"}, | |
| * produces={"application/json"}, |
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors on Mac.)
| <?php | |
| namespace libs\mysql; | |
| class PDODbImporter{ | |
| private static $keywords = array( | |
| 'ALTER', 'CREATE', 'DELETE', 'DROP', 'INSERT', | |
| 'REPLACE', 'SELECT', 'SET', 'TRUNCATE', 'UPDATE', 'USE', | |
| 'DELIMITER', 'END' | |
| ); |
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| <?php | |
| namespace Acme\Validation\Capsule; | |
| use Illuminate\Container\Container; | |
| use Illuminate\Database\ConnectionResolver; | |
| use Illuminate\Database\ConnectionResolverInterface; | |
| use Illuminate\Database\Connectors\ConnectionFactory; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Illuminate\Translation\FileLoader; |
| # Original Rails controller and action | |
| class EmployeesController < ApplicationController | |
| def create | |
| @employee = Employee.new(employee_params) | |
| if @employee.save | |
| redirect_to @employee, notice: "Employee #{@employee.name} created" | |
| else | |
| render :new | |
| end |