Não use UUID
como PK nas tabelas do seu banco de dados.
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
path="/home/user" | |
for item in `ls`; | |
do | |
dir="$path/$item" | |
if [ -d $dir ] # check if it's a directory | |
then | |
cd $dir | |
pwd | |
cd .. |
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
interface Observer { | |
update: (s: Subject) => void | |
} | |
class Subject { | |
private observers: Observer[] = []; | |
addObserver(ob: Observer) { | |
if (!this.observers.some(obs => obs === ob)) { | |
console.log('ADDING:', ob); |
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
@startuml | |
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml | |
!define FONTAWESOME https://raw.githubusercontent.com/tupadr3/plantuml-icon-font-sprites/master/font-awesome-5 | |
!include FONTAWESOME/firefox_browser.puml | |
!include FONTAWESOME/aws.puml | |
Person(user, "Usuário", "Responável por realizar o cadastro dos visitantes do museu") | |
System_Boundary(c1, "Contexto do sistema de cadastro de visitantes do museu") { | |
System(web, "Sistema WEB para cadastro de visitantes", "Sistema web responsável por realizar o cadastro dos visitantes ao museu", $sprite="firefox_browser") |
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
interface Accumulator { | |
[key: string]: any | |
} | |
interface CurrentItem { | |
[index: number]: string | |
} | |
const convertToSnakeCase = (key: string) => key.replace(/[A-Z]/g, '_$&') | |
.toLowerCase() |
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.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.fontFamily": "'Fira Code', 'monospace', monospace, 'Droid Sans Fallback'", | |
"editor.fontLigatures": true, | |
"editor.formatOnSave": true, | |
"editor.suggestSelection": "first", | |
"editor.rulers": [100], | |
"explorer.compactFolders": false, | |
"files.exclude": { | |
"**/.classpath": true, |
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
function createStore({ state, mutations }) { | |
return { | |
state: Vue.observable(state), | |
commit(key, ...args) { | |
mutations[key](state, ...args) | |
} | |
} | |
} | |
const store = createStore({ | |
state: { count: 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
{ | |
"Create public function": { | |
"prefix": "pubf", | |
"body": [ | |
"public function $1($2)", | |
"{", | |
"\t$3", | |
"}" | |
], | |
"description": "Public function block" |
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
*, html, body { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
html { | |
font-size: 62.5%; /* O font-size base passa a ser múltiplo de 10px, ou seja, 1rem === 10px*/ | |
} |
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
version: '3' | |
services: | |
awesome-db: | |
image: mariadb:10.3 | |
command: "--character-set-server=utf8 --collation-server=utf8_general_ci --innodb-use-native-aio=0" | |
restart: "no" | |
ports: | |
- "3306" | |
volumes: |
NewerOlder