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 parseCSV(data, separator) { | |
| const lines = data.split(/\r\n|\n/); | |
| const header = lines[0].split(separator); | |
| const result = []; | |
| for(let i = 1; i < lines.length; i++){ | |
| const fields = lines[i].split(separator); | |
| const line = {}; | |
| for(let k = 0; k < header.length; k++) | |
| line[header[k]] = fields[k]; |
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 Custo(valor, nome){ | |
| this.valor = valor; | |
| this.nome = nome; | |
| } | |
| Custo.prototype.juros = function(juros) { | |
| //isso tá errado, pq isso não é juros né... | |
| this.valor += juros; | |
| return this.valor; | |
| } |
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
| <?php | |
| $urlX = "https://jsonplaceholder.typicode.com/todos/"; //URL1 que retorna X | |
| $urlY = "https://jsonplaceholder.typicode.com/users"; //URL2 que retorna Y | |
| $multiHandler = curl_multi_init(); | |
| //URL1 - X | |
| $curlX = curl_init(); | |
| curl_setopt($curlX, CURLOPT_URL, $urlX); | |
| curl_setopt($curlX, CURLOPT_HEADER, 0); |
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
| <?php | |
| function myCount($array){ | |
| global $chamadas; | |
| if($chamadas == 0) | |
| echo "<i>Primeira chamada da função <b>myCount</b>!</i> <br />"; | |
| else | |
| echo "Chamei a função <b>myCount</b> de novo! <b>Isso é um problema</b>...<br />"; | |
| $chamadas++; | |
| return count($array); |
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; | |
| namespace MailCleaner | |
| { | |
| using Pop3; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.RegularExpressions; |
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
| <div class="btns"> | |
| <button>BTN 1</button> | |
| <button>BTN 2</button> | |
| <button>BTN 3</button> | |
| <button>BTN 4</button> | |
| </div> | |
| <script> | |
| $(document).ready(function(){ | |
| $(".btns button").click(function(){ | |
| $(".btns button").css("background-color", "rgb(20, 115, 153)"); //coloca todos na mesma cor |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| int main() { | |
| //A = valor do litro de Alcool | |
| //G = valor do litro de Gasolina | |
| //D = valor do litro de Diesel |
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
| <video width="426" height="240" id="v1"> | |
| <source src="video1.mp4" type="video/mp4"> | |
| <source src="video1.webm" type="video/webm"> | |
| </video> | |
| <video width="426" height="240" id="v2"> | |
| <source src="video2.mp4" type="video/mp4"> | |
| <source src="video2.webm" type="video/webm"> | |
| </video> |
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
| namespace MailCleaner | |
| { | |
| //https://github.com/rfinochi/pop3dotnet | |
| //PM> Install-Package Pop3 | |
| using Pop3; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; |
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
| // *********************************************************************** | |
| // Assembly : AssemblyName | |
| // Author : Guilherme Branco Stracini | |
| // Created : 2020-01-01 | |
| // | |
| // Last Modified By : Guilherme Branco Stracini | |
| // Last Modified On : 2020-01-01 | |
| // *********************************************************************** | |
| // <copyright file="" company="Guilherme Branco Stracini"> | |
| // Copyright © 2020 - 2021 Guilherme Branco Stracini |