const groupBy = key => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = obj[key];
objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
return objectsByKeyValue;
Muitos sites em PHP possuem uma página que é um script para enviar o email de contato ou tratar o preenchimento de algum formulário.
Para fazer com que essa página envie os dados para o CRM do RD Station, é só inserir nosso script de integração em seu código e fazer a chamada quando for controlar a submissão dos dados.
This file contains 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 App\Zoop; | |
use Auth; | |
use Carbon\Carbon; | |
use App\Zoop\ZoopGateway; | |
class Seller extends ZoopGateway | |
{ |
This file contains 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
<h3>Comece já sua obra gratuitamente</h3> | |
<form action="https://app.arquitecasa.com.br/simular" method="get" class="search-pros-form"> | |
<div class="field-group"> | |
<label>O que você precisa</label><br> | |
<select name="type"> | |
<option value="reformar">Reformar</option> | |
<option value="construir">Construir</option> | |
</select> | |
</div> | |
<div class="field-group"> |
This file contains 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
public $banks = [ | |
'237' => '237 - Banco Bradesco S.A.', | |
'001' => '001 - Banco do Brasil S.A.', | |
'341' => '341 - Itaú Unibanco S.A.', | |
'033' => '033 - Banco Santander (Brasil) S.A.', | |
'104' => '104 - Caixa Econômica Federal', | |
'654' => '654 - Banco A.J.Renner S.A.', | |
'246' => '246 - Banco ABC Brasil S.A.', | |
'075' => '075 - Banco ABN AMRO S.A.', | |
'025' => '025 - Banco Alfa S.A.', |
This file contains 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 | |
$link = mysqli_connect("localhost", "user", "password", "database"); | |
if($link === false){ | |
die("ERROR: Could not connect. " . mysqli_connect_error()); | |
} | |
$sql = "UPDATE wp_options SET option_value = replace(option_value, 'http://oldserver.com.br', 'http://newserver.com.br') WHERE option_name = 'home' OR option_name = 'siteurl';"; | |
if(mysqli_query($link, $sql)){ | |
echo "feito."; | |
} else { |
This file contains 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
code --install-extension alefragnani.Bookmarks | |
code --install-extension brapifra.phpserver | |
code --install-extension CoenraadS.bracket-pair-colorizer | |
code --install-extension donjayamanne.githistory | |
code --install-extension formulahendry.auto-close-tag | |
code --install-extension formulahendry.auto-rename-tag | |
code --install-extension HookyQR.beautify | |
code --install-extension HvyIndustries.crane | |
code --install-extension octref.vetur | |
code --install-extension oderwat.indent-rainbow |
This file contains 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
sudo chown -R www-data:www-data . | |
sudo usermod -a -G www-data admin | |
sudo find . -type f -exec chmod 644 {} \; | |
sudo find . -type d -exec chmod 755 {} \; | |
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache |
This file contains 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
sudo chown -R www-data:www-data . | |
sudo usermod -a -G www-data admin | |
sudo find . -type f -exec chmod 644 {} \; | |
sudo find . -type d -exec chmod 755 {} \; | |
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache |
This file contains 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
{"swagger": "2.0","info": { "version": "2018.11.6.114634","title": "SAK.Test.ApplicationLab","description": "A sample API that uses a Http2RpcProvider provider as an example to demonstrate features in SAK","license": {"name": "MIT"}},"host": "localhost:20319","basePath": "/","schemes": ["http"],"consumes": ["application/json"],"produces": ["application/json"],"paths": { "/apitestservice/v1/customers": {"get": { "operationId": "GetCustomers","summary": "Método: GetCustomers","produces": [ "application/json" ],"responses": { "200": { "description": "200 response" }}},"post": { "operationId": "PostCustomers","summary": "Método: PostCustomers","produces": [ "application/json" ],"responses": { "200": { "description": "200 response" }}}},"/apitestservice/v1/customers/:id": {"get": { "operationId": "GetSingleCustomers","summary": "Método: GetSingleCustomers","produces": [ "application/json" ],"responses": { "200": { "description": "200 response" }}},"post": { "operationId": "PostCustomersById","summary": "Método: P |