{
"name": "assando-sites",
"require": {
"cakephp/cakephp": ">=2.5.0",
"ext-apcu": "*",
#Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.
Sublime Text | PHPStorm | Função |
---|---|---|
CMD+P | CMD+Shift+O | Busca por arquivos no projeto |
CMD+R | CMD+F12 (1) | Lista os métodos da classe e outros símbolos |
CMD+F | CMD+F | Busca no arquivo |
CMD+Option+F | CMD+R | Busca e troca os valores no arquivo |
CMD+Shift+F | CMD+Shift+F | Busca, busca e troca e outros em um determinado caminho com várias regras. |
CMD+D (2) | Option+Up (2) | Seleciona palavra |
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 produtos = [ | |
{ | |
nome: 'Bicicleta', | |
preco: 1200.0 | |
}, | |
{ | |
nome: 'Capacete', | |
preco: 450.0 | |
} | |
] |
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 produtos = [ | |
{ | |
id: 1, | |
preco: 10.0, | |
qtd: 2 | |
}, | |
{ | |
id: 2, | |
preco: 10.0, | |
qtd: 2 |
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 fs = require('fs') | |
const path = "./" | |
const readdirPromise = (path) => { | |
return new Promise((resolve, reject) => { | |
fs.readdir(path, (err, files) => { | |
if(err){ | |
reject(err) | |
}else{ |
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 fs = require('fs') | |
const path = "./" | |
const readdirPromise = (path) => { | |
return new Promise((resolve, reject) => { | |
fs.readdir(path, (err, files) => { | |
if(err){ | |
reject(err) | |
}else{ |
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 readdirPromise = (path) => { | |
return new Promise((resolve, reject) => { | |
fs.stat(path, (err, stat) => { | |
if(err){ | |
reject(err) | |
}else{ | |
resolve(stat.isFile()) | |
} | |
}) | |
}) |
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 express = require('express') | |
const app = express() | |
const port = 3000 | |
app.get('/somar', (request, response) => { | |
let soma = 0; | |
if(request.query && request.query.num1 && request.query.num2){ |
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
let Menu = (()=> { | |
'use strict' | |
const api = new Api(); | |
const template = new Template(); | |
const $ = (el) => document.querySelector(el) | |
const displayWidth = () => window.innerWidth | |
const headerMenuFull = $('#container-menu'); | |
OlderNewer