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
{ | |
"type": "template", | |
"template": { | |
"namespace": "{{namespace}}", | |
"language": { | |
"policy": "deterministic", | |
"code": "pt_BR" | |
}, | |
"name": "{{template_name}}", | |
"components": [ |
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
# Author: Hércules Nakai | |
from blip_session import BlipSession | |
# Fill with bot authorization key and user identity | |
BOT_AUTHORIZATION = '' | |
USER_IDENTITY = '' | |
DELETE_METHOD = 'delete' | |
GET_METHOD = 'get' |
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
function nowUTC(offset) { | |
let now = new Date; | |
let utc_timestamp = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), | |
now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds(), now.getUTCMilliseconds()); | |
return new Date(utc_timestamp + offset * 3600 * 1000); | |
} | |
function formatDay(day) { | |
return day < 10 ? `0${day}` : day;; |
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
function validateCPF(cpf) { | |
if (isNumber(cpf)) { | |
if (isCPFValid(cpf)){ | |
return true; | |
} | |
} | |
return false; | |
} |
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
function isNameValid(name) { | |
if (name != "" && name != null && name != undefined) { | |
if (isFullName(name)) { | |
if (!hasInvalidSymbols(name)) { | |
return true; | |
} | |
} | |
} | |
return false; | |
} |