Official documentation: https://www.typescriptlang.org/docs/handbook/utility-types.html
Make all properties in T
optional.
type t = Partial<{a: string; b: number}>;
import { existsSync, mkdirSync } from 'fs'; | |
import { resolve } from 'path'; | |
import { config } from '../config'; | |
export async function processTextToSpeech(ssml: string, filename: string) { | |
// Check media dir | |
const dirPath = resolve(config.main.storePath); | |
if (!existsSync(dirPath)) { | |
mkdirSync(dirPath); | |
} |
FROM php:7.4-fpm-alpine | |
WORKDIR "/application" | |
# Install essential build tools | |
RUN apk add --no-cache \ | |
git \ | |
yarn \ | |
autoconf \ | |
g++ \ | |
make \ |
Official documentation: https://www.typescriptlang.org/docs/handbook/utility-types.html
Make all properties in T
optional.
type t = Partial<{a: string; b: number}>;
/* | |
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp... | |
Que tal enviar mensagens pra ela até obter uma resposta?! | |
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê! | |
Para utilizar: | |
- Abra o web.whatsapp.com; | |
- Selecione a conversa que você quer; | |
- Abra o console e cole o código que está no gist; |
# http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry | |
# The docker tag is the first 6 letters of the Git commit id | |
job_build_dotnet: | |
stage: build | |
image: microsoft/dotnet:latest | |
script: | |
- dotnet restore | |
- dotnet publish src/MyProject.Web -c Release | |
artifacts: |
<?php | |
return [ | |
// http://www.cidades.ibge.gov.br/download/mapa_e_municipios.php?uf=ac (Thu May 14 16:30:15 BRT 2015) | |
'AC' => [ | |
1200013 => 'Acrelândia', | |
1200054 => 'Assis Brasil', | |
1200104 => 'Brasiléia', | |
1200138 => 'Bujari', | |
1200179 => 'Capixaba', |
# install openjdk | |
sudo apt-get install openjdk-7-jdk | |
# download android sdk | |
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
tar -xvf android-sdk_r24.2-linux.tgz | |
cd android-sdk-linux/tools | |
# install all sdk packages |
https://sublime.wbond.net/installation#st3
sourcecodepro.sh
hack.sh
/** | |
* Remove acentos de caracteres | |
* @param {String} stringComAcento [string que contem os acentos] | |
* @return {String} [string sem acentos] | |
*/ | |
function removerAcentos( newStringComAcento ) { | |
var string = newStringComAcento; | |
var mapaAcentosHex = { | |
a : /[\xE0-\xE6]/g, | |
e : /[\xE8-\xEB]/g, |