useful links about ts/js testing on a project with Gatsby.js
-
Jest - is a delightful JavaScript Testing Framework with a focus on simplicity.
useful links about ts/js testing on a project with Gatsby.js
Jest - is a delightful JavaScript Testing Framework with a focus on simplicity.
// hack to enable touch after focus on the iframe | |
html, | |
body { | |
touch-action: auto; | |
} |
past the following string into the google chrome address bar:
data:text/html,<html contenteditable>
#Comandos úteis do Maven
mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-quickstart \
Modelo Comercial : Software Livre
Descrição : É uma plataforma que permite a construção de um sistema personalizado de registros médicos sem precisar de conhecimentos em programação (claro que o conhecimento de análises médicas e sistemas é necessário). O sistema é baseado em uma estrutura conceitual de banco de dados que armazena dados do paciente e registros médicos, permite a exportação de dados para planilhas, possui meios de segurança para os dados clínicos dos pacientes, criação de relatórios, e outras funções. É um projeto libre muito utilizado nos países pobres para o acompanhamento de epidemias e está disponível para Linux, Windows e Mac OS.
type TJSObject = { [key: string]: any }; | |
type TJSValue = TJSObject | any; | |
type TArrayFilter<T> = (x: T) => boolean; | |
const TO_STRING = {}.toString; | |
const isObjectBasicCheck = <T extends object>(value: any): value is T => value !== null && typeof value === 'object'; |
# define a full backup of a git repository from one remote server to another one | |
origin="https://remote-source/repository.git"; | |
target="https://remote-target/repository.git"; | |
workDir="temp-directory"; | |
mkdir $workDir |
function isElementVisible(el, fullVisible) { | |
// efp - element from point | |
function efp(x, y) { | |
return window.document.elementFromPoint(x, y); | |
} | |
function getVWidth() { | |
return window.innerWidth || window.document.documentElement.clientWidth; | |
} |
const DEVICES_REGEXP = new RegExp([ | |
/Android|webOS/, | |
/|iPhone|iPad|iPod/, | |
/|BB10|BlackBerry/, | |
/|IEMobile|Opera Mini/, | |
/|Mobile|mobile/ | |
].map(function(r) {return r.source}).join(''), 'i'); | |
// output: /Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i |
import * as React from 'react'; | |
export type TFunction = (...args: any[]) => any; | |
/** | |
* common code to define useTimeout or useInterval hooks | |
* | |
* @param waitFunction | |
* @param cleanWaitFunction | |
*/ |