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
| #INSTALE O CHOCOLATEY https://chocolatey.org/install | |
| #Copie e cole o codigo a baixo | |
| #nem todos os programas estao disponiveis pra instalacao por esse script, verificar | |
| choco install ganttproject astah mysql xampp-80 netbeans androidstudio visualstudio2019community mysql.installer visualparadigm-ce postgresql pgadmin4 netfx-4.8 jdk8 jdk11 sublimetext2 vscode codeblocks python3 pycharm-community sqlitestudio -y |
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
| const map = (fn, [x, ...xs]) => ( | |
| (x === undefined && xs.length ==0)? [] | |
| :[f(x),...map(f,xs)] | |
| ); |
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
| { | |
| "array": [ | |
| 1, | |
| 2, | |
| 3 | |
| ], | |
| "boolean": true, | |
| "null": null, | |
| "number": 123, | |
| "object": { |
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
| const mapper =(fn, [head, ...tail]) => ( head === undefined && tail.length < 1 ? [] : [fn(head), ...mapper(fn, tail)] ); | |
| const filterr = (pred, [head, ...tail]) => head === undefined ? [] : (pred(head) ? [head, ...filterr(pred, tail)] : [...filterr(pred, tail)]); | |
| const reducer = (fn, acc, [head, ...tail]) => head === undefined ? acc : reducer(fn, fn(acc, head), tail); |
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
| browser-sync start --server --files "css/*.css, *.html" |
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
| //Você poderia usar uma array de arrays, que possui o nome de cada donut associado à sua posição na caixa. | |
| //Aqui está um exemplo: | |
| var donutBox = [ | |
| ["glazed", "chocolate glazed", "cinnamon"], | |
| ["powdered", "sprinkled", "glazed cruller"], | |
| ["chocolate cruller", "Boston creme", "creme de leche"] | |
| ]; | |
| //Se você quisesse fazer um loop sobre a caixa de donut e exibir cada donut (juntamente à sua posição na caixa), iniciaria escrevendo um loop de repetição for para fazer o loop em cada linha da caixa de donuts: |
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 feira = "Fui no mercado comprar: caqui, limao, pera, morango, abacaxi."; | |
| var comeco = feira.indexOf(':'); | |
| var final = feira.indexOf('.', comeco+1); | |
| var lista = feira.substring(comeco+1, final); | |
| console.log(lista) |
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
| npm i --save-dev babel-cli babel-preset-env nodemon && echo { "presets": ["env"] } > .babelrc |
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 str = "isso é uma string"; | |
| typeof(str);//'string' | |
| var num = 1.74; | |
| typeof(num);//'number' | |
| var bol = true; | |
| typeof(bol);//'boolean' | |
| var und; //undefined |
NewerOlder