I hereby claim:
- I am kstefan on github.
- I am karelstefan (https://keybase.io/karelstefan) on keybase.
- I have a public key ASBGbKOgKnAbOAEwlYYPP5sJAToyUNuvCctsw52FtJnv-Ao
To claim this, I am signing this object:
| Invoke-RestMethod -Uri 'http://example.com' ` | |
| -Method Post -ContentType 'application/json' -Body '{"hello": "world"}' |
I hereby claim:
To claim this, I am signing this object:
| curl -XPOST -u elastic 'http://elastic:9200/_xpack/security/role/my_role' -H "Content-Type: application/json" -d '{ | |
| "indices" : [ | |
| { | |
| "names" : [ "indexPrefix*" ], | |
| "privileges" : [ "all" ] | |
| } | |
| ] | |
| }' | |
| curl -XPOST -u elastic 'http://elastic:9200/_xpack/security/user/my_username' -H "Content-Type: application/json" -d '{ |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.junit.runners.Parameterized; | |
| import org.junit.runners.Parameterized.Parameters; | |
| import java.util.Arrays; | |
| import java.util.Collection; | |
| import static org.junit.Assert.assertEquals; |
| <?php | |
| return [ | |
| 'doctrine' => [ | |
| /* ... */ | |
| 'configuration' => [ | |
| 'orm_default' => [ | |
| 'metadata_cache' => 'array', | |
| 'query_cache' => 'array', | |
| 'result_cache' => 'array', | |
| 'generate_proxies' => true, |
| # SET @@session.max_sp_recursion_depth = 255; | |
| # CALL recalculateTree(NULL, 0, 0, @index); | |
| CREATE PROCEDURE recalculateTree(IN parent INT, IN i INT, IN depth INT, OUT ri INT) | |
| BEGIN | |
| DECLARE done INT DEFAULT FALSE; | |
| DECLARE n_id INT; | |
| DECLARE n_parent_id INT; |
| diff.ago.second: '{0}Právě teď|{1}Před %count% vteřinou|[1,Inf]Před %count% vteřinami' | |
| diff.ago.minute: '{1} Před %count% minutou|[1,Inf] Před %count% minutami' | |
| diff.ago.hour: '{1} Před %count% hodinou|[1,Inf] Před %count% hodinami' | |
| diff.ago.day: '{1} Před %count% dnem|[1,Inf] Před %count% dny' | |
| diff.ago.month: '{1} Před %count% měsícem|[1,Inf] Před %count% měsíci' | |
| diff.ago.year: '{1} Před %count% rokem|[1,Inf] Před %count% roky' |
| <?php | |
| public function getInputFilterSpecification() | |
| { | |
| return [ | |
| 'amount' => [ | |
| 'required' => true, | |
| 'validators' => [ | |
| new Validator\GreaterThan([ | |
| 'min' => 0, |
| <?php | |
| class ExpenseStatement | |
| { | |
| /** | |
| * @param ExpenseStatementState|string $state | |
| * @return ExpenseStatementEvent | |
| */ | |
| public function getLastEvent($state) | |
| { |
| {% macro valueOrDefault(value, default, attribute) %} | |
| {% if value %} | |
| {{ attribute ? attribute(value, attribute) : value }} | |
| {% else %} | |
| {{ default }} | |
| {% endif %} | |
| {% endmacro %} | |
| {% macro optionalValue(value, attribute) %} | |
| {% import _self as self %} |