Skip to content

Instantly share code, notes, and snippets.

View jiripudil's full-sized avatar

Jiří Pudil jiripudil

View GitHub Profile
@jiripudil
jiripudil / tooltip.html
Last active October 26, 2016 07:12
Purce CSS tooltip - demo: https://jsfiddle.net/yp1tL5ft/
<span data-tooltip="Look ma, I am a tooltip!">Hover over me!</span>
<?php
declare(strict_types = 1);
namespace App\Application;
use Slim\App;
interface ApplicationConfigurator
@jiripudil
jiripudil / README.md
Created November 19, 2018 07:52
Running and compiling a PhpStorm plugin
  1. Open File | Project Structure.
  2. In Platform Settings | SDK, add an Intellij Platform Plugin SDK pointing to an installation of PhpStorm.
  3. In Project Settings | Libraries, add a Java library with two files from the installation of PhpStorm: plugins/php/lib/php.jar and plugins/php/lib/php-openapi.jar.
  4. In Project Settings | Modules, set the Module SDK to the SDK created in step 2.
  5. At the same place, add the library created in step 3 to the module if it's not there already. Then set its Scope to Provided and make sure the Export checkbox is unchecked.

Now you should be able to create a Plugin-type run configuration and run the plugin. To build a final jar file, use Build | Prepare Plugin Module For Deployment.

@jiripudil
jiripudil / LatteExtractor.php
Last active March 22, 2020 12:41
Symfony/Translation keys extraction from Nette and Latte
<?php
declare(strict_types=1);
namespace App\Infrastructure\Localization\Extractor;
use Latte\Engine;
use Nette\Application\UI\ITemplateFactory;
use Nette\Bridges\ApplicationLatte\Template;
use Nette\Utils\Finder;