This file contains hidden or 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
| 5058 mkdir exercises | |
| 5059 cd exercises | |
| 5060 git clone https://gitlab.setrem.mdcnet.ninja/setrem/wagnersilveira-centralizado.git alice | |
| 5062 git clone https://gitlab.setrem.mdcnet.ninja/setrem/wagnersilveira-centralizado.git bob | |
| 5063 cd alice | |
| 5064 git status | |
| 5065 ls -la | |
| 5066 code .git/config | |
| 5067 echo '\n[user]\n email = alice@target.trust\n name = Alice S.\n[alias]\n hist=log -20 --pretty=format:"%C(yellow)%h%Creset\\ %C(green)%ar%C(cyan)%d\\ %Creset%s%C(yellow)\\ [%cn]" --graph --decorate --all' >> .git/config | |
| 5068 git config |
This file contains hidden or 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
| [{"name":"people","color":"Green","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"name","type":"string","length":"222","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0}],"relation":[],"seeding":[]},{"name":"addresses","color":"Green","position":{"x":863,"y":52},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"address","type":"string","length":"222","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c55","order":0}],"relation":[{"extramethods":"","foreignkeys":"","name":"person","relatedmodel":"people","relationtype":"hasOne","usenamespace":""}],"seeding":[]}] |
This file contains hidden or 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
| [ | |
| 'bad_request' => 'O pagamento não pode ser processado' | |
| '5003' => 'falha de comunicação com a instituição financeira' | |
| '10000' => 'bandeira inválida' | |
| '10001' => "número do cartão inválido" | |
| '10002' => "data no formato inválido" | |
| '10003' => "código de segurança inválido" | |
| '10004' => "cvv obrigatório" | |
| '10006' => "código de segurança inválido" | |
| '53004' => "quantidade de ítens inválido" |
This file contains hidden or 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
| SET FOREIGN_KEY_CHECKS = 0; | |
| TRUNCATE table countryside; | |
| SET FOREIGN_KEY_CHECKS = 1 | |
| INSERT INTO `countryside` (`id`, `area_id`, `code`, `name`, `hectareSize`, `latitude`, `longitude`, `deleted`, `deleted_at`, `updated_at`, `created_at`, `group_id`, `specie_id`, `cultivate_id`, `category_id`, `harvest`, `estimated_production`, `real_production`, `date_production`) | |
| VALUES | |
| (1, 1, '00117', 'Nome do Campo 1', 12.33, '1,3213', '1,2222', 0, NULL, NULL, '2017-02-15 15:28:38', 1, 1, 1, 1, '2016/2016', 0.65, NULL, '2016-10-10'), | |
| (2, 1, '00217', 'Nome do Campo 2', 12.33, '1,3213', '1,2222', 0, NULL, NULL, '2017-02-15 16:58:18', 1, 1, 1, 1, '2016/2016', 0.65, NULL, '2016-10-10'), | |
| (3, 1, '09017', 'Nome do Campo 3', 12.33, '1,3213', '1,2222', 0, NULL, '2017-02-15 20:36:50', '2017-02-15 17:00:03', 1, 1, 1, 1, '2016/2016', 0.65, NULL, '2016-10-10'), | |
| (4, 1, '00218', 'Nome do Campo 4', 12.33, '1,3213', '1,2222', 0, NULL, NULL, '2017-02-15 17:04:47', 1, 1, 1, 1, '2016/2016', 0.65, NULL, '2016-10-10'), | |
| (5, 1, '00120', 'Nome |
This file contains hidden or 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
| var contador = 1; | |
| while (contador <= 10) { | |
| console.log(contador + " Mississípi..."); | |
| contador++; | |
| } | |
| console.log("Valor do contador: " + contador); |
This file contains hidden or 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
| var palavras = ["URI", "SI"]; | |
| for (var i = 0; i < palavras.length; i++) { | |
| alert(palavras[i]); | |
| } |
This file contains hidden or 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
| var palavras = ["URI", "SI"]; | |
| console.log(palavras.length); // ?? | |
| palavras[5] = "CC"; | |
| console.log(palavras.length); // 6 |
This file contains hidden or 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
| var palavras = ["URI", "SI"]; | |
| palavras.push("CC"); // adiciona a string "CC" | |
| //Também é possível guardar valores de tipos diferentes: | |
| var variosTipos = ["URI", 10, [1,2]]; | |
| //Acessar elementos | |
| console.log(palavras[2]); | |
| console.log(palavras.length); |
This file contains hidden or 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
| var somaDoisNumeros = function(numero1, numero2) { | |
| return numero1 + numero2; | |
| }; | |
| somaDoisNumeros(10, 20); |
This file contains hidden or 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 somaDoisNumeros(numero1, numero2){ | |
| return numero1 + numero2; | |
| } | |
| var numero = 80; | |
| var resultado = somaDoisNumeros(10,20); // armazena 30 na variável resultado | |
| alert(numero - resultado); // exibe 50 |
NewerOlder