Criei esta classe simples para usar como exemplo de teste em linha de comando
https://github.com/ricardo-melo-martins/typescript-skeleton
/**
* Inspiring
*
* Inspiring is similar to Illuminate/Inspiring.php
Criei esta classe simples para usar como exemplo de teste em linha de comando
https://github.com/ricardo-melo-martins/typescript-skeleton
/**
* Inspiring
*
* Inspiring is similar to Illuminate/Inspiring.php
My configs for vscode
{
"editor.insertSpaces": false,
"editor.wordWrap": "off",
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
Exemplo de uso do TypeOrm no package.json
// package.json
...
"scripts": {
"typeorm": "typeorm-ts-node-commonjs",
"typeorm:db": "npm run typeorm -- -d=config/data-source",
"typeorm:show": "npm run typeorm -- version && npm run migrate:show",
"entity:create": "npm run typeorm -- entity:create",
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
// docker sakila database example in github.com/ricardo-melo-martins/docker
$config = [
'type'=>'mysql',
'hostname'=>'localhost',
'database'=>'sakila',
'username'=>'sakila',
Install Flask
$ pip install Flask
<?php | |
$awesome = "Super Awesome!"; | |
$result = strpos ( $awesome, G ); | |
if ($result === false) { | |
echo 'Not found'; | |
} else { | |
echo 'Found at position ' . $result; | |
} | |
#result: Not found |