Skip to content

Instantly share code, notes, and snippets.

View fddn's full-sized avatar
🏠
Working from home

Csaba Istvan Berta fddn

🏠
Working from home
View GitHub Profile
@fddn
fddn / data.json
Created August 31, 2020 12:56
Python generate property dinamically from json
{
"data1": [
"data11",
"data12"
],
"data2": [
"data21",
"data22"
]
}
@fddn
fddn / AcceptanceTester.php
Last active August 1, 2017 10:45
Codeception function to test Select2 dropdown
/**
* Select2Select is for select data from select2 dropdown menu via fill input field
* @param string $id
* @param string $value
*/
public function Select2Select($id, $value)
{
$nonHashmarkId = substr($id, 1);
$this->seeElement($id . ' + .select2');
$this->executeJS('$("' . $id . ' + .select2 .select2-selection").trigger({type: "mousedown", which: 1})');