This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $searchbox = $('#quick-search'); // selector do input | |
var $listElement = $('.list-element'); // selector para os elementos da lista | |
$searchbox.keyup(function() { | |
var e = $(this).val(), | |
t = 0, | |
n = 0; | |
$listElement.each(function() { | |
if ($(this).text().search(new RegExp(e, "i")) < 0) { | |
$(this).hide() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.support.ui import Select | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
""" | |
Inserir inputs | |
""" | |
configs = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stdClass Object ( | |
'items' => Array ( | |
0 => stdClass Object ( | |
- 'id' => '103e22d4-4906-43dd-8cb0-22d3c90cfbaf' | |
+ 'id' => '9427bd51-4038-46ce-81f5-4bd2d749291a' | |
'accommodation_provider_id' => '8e9569c8-5a6f-4caf-86ef-8976ac069f13' | |
'address' => stdClass Object ( | |
'city_code' => 'PT-lisbon' | |
- 'street' => 'Avenida da Liberdade' | |
+ 'street' => 'Rua Luz Soriano' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/Uniplaces/AccommodationBundle/Tests/Unit/Application/ProspectiveProperty/ProspectivePropertyQueryControllerTest.php | |
... | |
public function testSearch() | |
{ | |
$properties = $this->getController()->searchAction( | |
$this->createGetRequest(['city' => 'GB-london']) | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Uniplaces\AccommodationBundle\Application\ProspectiveProperty\TransferObject; | |
use Uniplaces\AgencyBundle\Domain\Staff\Id\AgencyStaffId; | |
use Uniplaces\AccommodationBundle\Application\ProspectiveProperty\TransferObject\ProspectivePropertyPhotoStatusTransferObject; | |
use Uniplaces\AccommodationBundle\Application\ProspectiveProperty\TransferObject\ProspectivePropertyAddressTransferObject; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Uniplaces\AccommodationBundle\AccommodationProvider\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
/** | |
* AccommodationProviderLinkContactType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SessionLogger | |
{ | |
public function log() | |
{ | |
$file = fopen('logger.txt', 'a'); | |
fwrite($file, Session::get('id') . ' performed some action'; | |
fclose($file); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SessionLogger | |
{ | |
public function log() | |
{ | |
$file = fopen('logger.txt', 'a'); | |
fwrite($file, Session::get('id') . ' performed some action'; | |
fclose($file); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SessionLogger | |
{ | |
public function log() | |
{ | |
$file = fopen('logger.txt', 'a'); | |
fwrite($file, Session::get('id') . ' performed some action'; | |
fclose($file); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class NativeSessionUserAudit implements UserAuditInterface | |
{ | |
public function get($param) | |
{ | |
return $_SESSION[$param]; | |
} | |
} |
OlderNewer