View Params
@pytest.fixture(scope=module) | |
def heavy_fixture(fixture1, fixture2): | |
# here be dragons | |
@pytest.mark.parametrize( | |
['param1', 'param2', 'param3'], | |
[ | |
(1, 0, 0), | |
(0, 1, 1), |
View gist:9616272
set nofoldenable | |
set title | |
let g:syntastic_python_checkers=['python', 'pylama', 'py3kwarn'] | |
au BufEnter * set cc=80 |
View response.json
{ | |
"data2": "testa", | |
"data3": "guess who is missing?", | |
"some_metadata": { | |
"foo": ["baz", "bar"] | |
}, | |
"version": "2.0" | |
} |
View response.json
{ | |
"data": "chuck", | |
"data2": "testa", | |
"some_metadata": { | |
"foo": ["baz", "bar"] | |
}, | |
"version": "1.3" | |
} |
View response.json
{ | |
"data2": "testa", | |
"data3": "guess who is missing?", | |
"some_metadata": { | |
"foo": ["baz", "bar"] | |
} | |
} |
View response.json
{ | |
"data": "chuck", | |
"data2": "testa", | |
"some_metadata": { | |
"foo": ["baz", "bar"] | |
} | |
} |
View gist:4373142
<?php | |
namespace Vendor\TestBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* Gneral class for all entities. | |
*/ |
View TemporaryFiles.php
<?php | |
/** | |
* File contains two classes to help maintaining temporary files (especially problem of | |
* cleaning up such files) - FileToRemove and TemporaryFile. | |
* | |
* Requires PHP >= 5.3.0 (tested with 5.3.10-1) | |
*/ | |
namespace Vendorname; |