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
//... start of the script | |
server.all(/.*/, function (req, res, next) { | |
// | |
// Get host | |
const host: any = req.header('host'); | |
// | |
// Skip localhost and IP requests | |
if(host.includes('localhost') || host.match(/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b/)) { | |
next(); |
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
handlers: | |
- url: /.* | |
secure: always | |
script: auto | |
redirect_http_response_code: 301 |
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
# replace example.com for your domain | |
server_name example.com; | |
if ($http_x_forwarded_proto = "http") { | |
return 301 https://$host$request_uri; | |
} |
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
//... start of the script | |
server.all(/.*/, function (req, res, next) { | |
// | |
// Get host | |
const host: any = req.header('host'); | |
// | |
// redirect non www to www | |
else if (!host.includes('www')) { | |
res.redirect(301, 'https://www.' + host + req.url); |
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
{ | |
"hosting": { | |
"public": "dist/angular-to-firebase-hosting-with-gh-actions", | |
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"] | |
} | |
} |
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
SET @pro_id := '0C5aec83c0dc47c'; | |
SELECT | |
p.balance SALDO, p.balance_pro SALDO_PROMOCAO, c.name Nome, c.email 'E-mail', c.cpf CPF, c.rg RG, c.birthday NASCIMENTO, c.phone TELEFONE, c.mobile CELULAR, c.cep CEP, c.number NUMERO, c.complemento COMPLEMENTO, c.bairro BAIRRO, c.city CIDADE, c.state UF, c.created_at CADASTRADO_EM | |
FROM | |
`esbox.api.sms`.pro_participants p | |
LEFT JOIN | |
`esbox.api.sms`.pro_clients c ON c.cli_id = p.cli_id | |
WHERE | |
p.pro_id = @pro_id AND |
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
// - coloca #contentElement no ion-content | |
// - scrollElement = this.contentElement.nativeElement.getElementsByTagName('ion-scroll'); | |
// - coloca #scrollToElement aonde você quer scrollar | |
// - scrollToElementTop = this.segmentElement.nativeElement.offsetTop | |
scrollElement[0].scroll({ | |
top: scrollToElementTop, | |
left: 0, | |
behavior: 'smooth' |
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
for (let item of items) { | |
let result = await ProductController.validateItemQty(item, item.qty); | |
} |
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
.table { | |
::-webkit-scrollbar { | |
height: 8px; | |
overflow: visible; | |
width: 16px; | |
} | |
::-webkit-scrollbar-button { | |
height: 0; | |
width: 0; | |
} |
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
::-webkit-scrollbar { | |
height: 16px; | |
overflow: visible; | |
width: 12px; | |
} | |
::-webkit-scrollbar-button { | |
height: 0; | |
width: 0; | |
} |
NewerOlder