Nome | Endereço | Avaliação | Preço | Obervações |
---|---|---|---|---|
Mangai | Av. Amintas Barros, 3300 | ★★★★★ | $$$$$ | Comida boa com toque regional |
Camarões Midway Mall | Avenida Bernardo Vieira, 3775 | ★★★★★ | $$$$$ | Comida maravilhosa e bem regional |
Camarões Ponta Negra | R. Pedro Fonseca Filho, 8887 | ★★★★★ | $$$$$ | Comida maravilhosa e bem regional |
O Amarelinho | Av. Prudente de Morais, 4354 | ★★★★_ | $$$__ | Comida boa, prato |
Café Retrô | Av. Amintas Barros 3700 | ★★★★_ | $$$$$ | Café |
Pirandello's Restaurantes | Av. Nascimento de Castro, 1969 | ★★★★★ | $$$__ | Comida boa, no peso |
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
docker run --name withmoney-db-postgres -p 5432:5432 -d postgres:9.5 | |
docker run -it --rm --link withmoney-db-postgres postgres:9.5 psql -U postgres -h withmoney-db-postgres |
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 mdc = (a, b) => b === 0 ? a : mdc(b, a % b) | |
const mmc = (a, b) => a * b / mdc(a, b) |
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
import React from 'react'; | |
// Toggle.js | |
class Toggle extends React.Component { | |
constructor(props) { | |
super(props); | |
this.toggle = this.toggle.bind(this); | |
this.state = { |
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 hidden characters
{ | |
"presets": [ | |
"react", | |
"stage-0", | |
[ | |
"env", | |
{ | |
"useBuiltIns": "entry" | |
} | |
] |
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
console.clear() | |
const string = '\'1\' , 2 , \'3\''; | |
const splitMult = (s, splits, r = []) => { | |
if (!s) return r |
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
console.clear(); | |
const compressLine = (line) => line.replace(/[ ]/g, ''); | |
const assigmentSimple = ([ name, value ]) => `const ${name} = ${value};` | |
const assigment = string => { | |
const [names, values] = string.split('='); | |
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
{ | |
"editor.fontFamily": "'Fira Code'", | |
"editor.fontSize": 15, | |
"editor.tabCompletion": true, | |
"editor.rulers": [ | |
100 | |
], | |
"editor.minimap.enabled": true, | |
"editor.minimap.renderCharacters": false, | |
"telemetry.enableTelemetry": 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
console.clear() | |
const l = console.log | |
const opAND = (fields) => { | |
return Object.keys(fields) | |
.map(field => opLogic(field, fields[field])) | |
.join(' AND ') | |
} | |
const opOR = (fields) => { |
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
console.clear(); | |
const fieldsQuery = (fields) => fields | |
.map(field => field | |
.split(' as ') | |
.map(each => each.trim()) | |
.join(' as ') | |
).join(', '); | |