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 enableImportRangePermission(ssId, donorId) { | |
console.log(`Addind ImportRangePermission for ${ssId}`) | |
const url = `https://docs.google.com/spreadsheets/d/${ssId}/externaldata/addimportrangepermissions?donorDocId=${donorId}` | |
const token = ScriptApp.getOAuthToken() | |
const params = { | |
method: 'post', | |
headers: { | |
Authorization: 'Bearer ' + token, |
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
export enum MappingMode { | |
SEND = 'send', | |
RECEIVE = 'receive' | |
} | |
export type MappingEntity = 'contact' | 'deal' | 'organization' | |
export type FieldMapping = { | |
sourceField: string | |
destinationField: string |
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
const CONVERT_CASE_REGEXP = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g | |
export class StrCaseConversion { | |
static toCamelCase(str: string): string { | |
const result = str.match(CONVERT_CASE_REGEXP) | |
if (result) { | |
const s = result.map(x => x.slice(0, 1).toUpperCase() + x.slice(1).toLowerCase()).join('') | |
return s.slice(0, 1).toLowerCase() + s.slice(1) | |
} |
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
{"lastUpload":"2021-06-15T04:46:04.378Z","extensionVersion":"v3.4.3"} |
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
{"lastUpload":"2021-07-26T04:59:40.651Z","extensionVersion":"v3.4.3"} |
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
# Show all running containers in the moment | |
docker ps | |
# Exibe todos os containers, it may be running or not. | |
docker ps -a | |
# Connects the terminal with that of the container. | |
docker run -it NOME_DA_IMAGEM | |
# Start container based on ID |
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
{ | |
// TypeScript installed global and in project | |
// Folder used after compile, should be dist/ (in this case) | |
// tsconfig.json with "sourceMap": true | |
// Entry point is main.ts of root project | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", |