Example payload:
[
{
"field": "custom_name",
"operator": "sw",
"value": "foo"
},
{
type CustomInfo = { | |
name: string; | |
email: string; | |
phoneNumber: string; | |
}; | |
interface CreditManagerSystem { | |
getCreditLimitForCustomer(customerId: string): number; | |
getCustomerInfo(customerId: string): CustomInfo; | |
} |
Example payload:
[
{
"field": "custom_name",
"operator": "sw",
"value": "foo"
},
{
type Prettify<T> = { [K in keyof T]: T[K] } & {}; | |
class Hello { | |
id?: number; | |
name?: string; | |
created_at?: string; | |
getFullName() { | |
return this.name; | |
} |
declare namespace NodeJS { | |
export interface ProcessEnv { | |
readonly NODE_ENV: 'development' | 'production'; | |
readonly NODE_PORT?: string; | |
readonly API_URL?: string; | |
} | |
} |
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
[*.{js,ts}] | |
indent_style = space | |
indent_size = 2 |
{ | |
"compilerOptions": { | |
"module": "NodeNext", | |
"moduleResolution": "NodeNext", | |
"target": "ES2020", | |
"sourceMap": true, | |
"outDir": "dist", | |
}, | |
"include": ["src/**/*"], | |
} |
## List folder sizes sorted asc | |
du -sh ./* | sort -h | |
## Remove folders/files based on .gitignore | |
for f in ./* ./**/* | |
do | |
if [ -d "$f" ] && [ -d "$f/.git" ] | |
then | |
echo "Directory $f" | |
git --git-dir $f/.git clean -Xdf -e !.env* -- $f |
- Spark Chat | |
O spark a partir da versão 2.8 usa um protocolo de transferência de arquivo diferente, na porta 7777. Para funcionar basta baixar a versão 2.7.7 encontrada nesse link: https://github.com/igniterealtime/Spark/releases/tag/v2.7.7 | |
Baixe a versão .tar.gz, é requerido o java8 na máquina. Para instalar: | |
sudo add-apt-repository ppa:openjdk-r/ppa | |
sudo apt-get update | |
sudo apt-get install openjdk-8-jdk | |
tar -xvzf spark_2_7_7.tar.gz |
sudo find . -name "node_modules" -type d -prune | xargs du -chs | |
sudo find . -name "node_modules" -type d -prune -exec rm -rf '{}' + |