Skip to content

Instantly share code, notes, and snippets.

@integer
integer / ParseDownExtension.php
Created July 16, 2016 15:25
Comments for Parsedown
<?php
/**
* Adds support for
* {comm}
* Multiline comment block
* {/comm}
* and {lcomm}inline comment{/lcomm}.
*
* Comments will be ignored in page output.
@integer
integer / enum_example.php
Created April 12, 2017 08:34
Enum v entitě
<?php
declare(strict_types=1);
// vše je pouze pseudokód, jde jen o ukázku
Book extends ORM\Entity
{
/**
* @PrimaryKey
@integer
integer / readme.txt
Created April 10, 2014 12:29
Mac umask apache
How to change umask for apache on Mac:
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist
add
<key>Umask</key>
<integer>002</integer>
in <dict> section
$ sudo apachectl stop
@integer
integer / index.php
Created July 21, 2023 07:55
PHP declare(strict_types=1) trap
<?php
// No strict type here...
require_once __DIR__ . '/strict.php';
function foo(/* int */ $input) { // ..so adding type definition is safe, isn't it?
printf("param=%d\n", $input);
}