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
| #define entrada(x) pinMode(x, INPUT_PULLUP) | |
| #define saida(x) pinMode(x, OUTPUT) | |
| #define aguarde(x) delay(x) | |
| #define DESLIGA 0 // Usado para controlar LEDs | |
| #define NADA_ESCOLHIDO 0 // Usado para verificar botões | |
| #define VERMELHO (1 << 0) | |
| #define VERDE (1 << 1) | |
| #define AZUL (1 << 2) | |
| #define AMARELO (1 << 3) |
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
| // Javascript implementation of the SICP exercises |
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
| let fs = require("fs"); | |
| let pasta = "./"; | |
| const regex = /([\d]{2}).?-?([\d]{2}).?-?([\d]{4})/i; | |
| let contagem = 0; | |
| fs.readdir(pasta, function(err, pastas) { | |
| pastas.forEach(pasta => { |
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 os = require('os'); | |
| var interfaces = os.networkInterfaces(); | |
| var addresses = []; | |
| for (var k in interfaces) { | |
| for (var k2 in interfaces[k]) { | |
| var address = interfaces[k][k2]; | |
| if (address.family === 'IPv4' && !address.internal) { | |
| addresses.push(address.address); | |
| } |
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
| using System; | |
| using System.IO; | |
| namespace RenomeadorDeDocumentos | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| if (Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(),"Protocolando"))) { |
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 { openBrowser, goto, write, click } = require('taiko'); | |
| (async () => { | |
| try { | |
| await openBrowser(); | |
| await goto("google.com"); | |
| await write("taiko test automation"); | |
| await click("Google Search"); | |
| } catch (error) { | |
| console.error(error); | |
| } finally { |
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
| // Lista das candidatas mulheres | |
| let mulheres = [ | |
| { sexo: "feminino", idade: 20 }, | |
| { sexo: "feminino", idade: 20 }, | |
| { sexo: "feminino", idade: 21 }, | |
| { sexo: "feminino", idade: 21 }, | |
| { sexo: "feminino", idade: 21 }, | |
| { sexo: "feminino", idade: 21 }, | |
| { sexo: "feminino", idade: 21 }, | |
| { sexo: "feminino", idade: 22 }, |
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
| using System; | |
| using System.Collections.Generic; | |
| namespace Haiku | |
| { | |
| public class Cli | |
| { | |
| public List<Command> Commands = new List<Command>(); | |
| private string Argument { get; set; } | |
| private string Option { get; set; } |