Skip to content

Instantly share code, notes, and snippets.

View matheusdavidson's full-sized avatar

Matheus Davidson matheusdavidson

View GitHub Profile
//... 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();
handlers:
- url: /.*
secure: always
script: auto
redirect_http_response_code: 301
# replace example.com for your domain
server_name example.com;
if ($http_x_forwarded_proto = "http") {
return 301 https://$host$request_uri;
}
//... 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);
{
"hosting": {
"public": "dist/angular-to-firebase-hosting-with-gh-actions",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
}
}
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
// - 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'
for (let item of items) {
let result = await ProductController.validateItemQty(item, item.qty);
}
.table {
::-webkit-scrollbar {
height: 8px;
overflow: visible;
width: 16px;
}
::-webkit-scrollbar-button {
height: 0;
width: 0;
}
::-webkit-scrollbar {
height: 16px;
overflow: visible;
width: 12px;
}
::-webkit-scrollbar-button {
height: 0;
width: 0;
}