Skip to content

Instantly share code, notes, and snippets.

Avatar

Alvaro Cánepa alvaro-canepa

View GitHub Profile
@alvaro-canepa
alvaro-canepa / Measure.php
Last active Sep 24, 2021
PHP Calculate execution time on code
View Measure.php
<?php
class Measure
{
/** @var array */
protected static $timers;
/**
* Sets initial timer for specified name (optional)
*
@alvaro-canepa
alvaro-canepa / phpstorm-octobercms-plugin-update.class.php.vm
Created Jun 15, 2019
PHP OctoberCMS Plugin Update for PHPStorm file templates
View phpstorm-octobercms-plugin-update.class.php.vm
<?php
#if (${NAMESPACE}) namespace ${NAMESPACE};
#end
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
#parse("PHP Class Doc Comment.php")
@alvaro-canepa
alvaro-canepa / phpstorm-octobercms-plugin-schema-create.class.php.vm
Last active Jun 15, 2019
PHP OctoberCMS Plugin Schema Create for PHPStorm file templates
View phpstorm-octobercms-plugin-schema-create.class.php.vm
<?php
#if (${NAMESPACE}) namespace ${NAMESPACE};
#end
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
#parse("PHP Class Doc Comment.php")
@alvaro-canepa
alvaro-canepa / phpstorm-octobercms-plugin-seeder.class.php.vm
Created Jun 15, 2019
PHP OctoberCMS plugin seeder for PHPStorm file template
View phpstorm-octobercms-plugin-seeder.class.php.vm
<?php
#if (${NAMESPACE}) namespace ${NAMESPACE};
#end
use October\Rain\Database\Updates\Seeder;
use Symfony\Component\Console\Helper\ProgressBar;
/**
* Class ${NAME}
*
View jsbin.ofehEcug.css
#gmap {
width: 100%;
height: 700px;
border: 1px solid #dedede;
background-color: #f2f2f2;
}