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
| // Script simplificado | |
| let resultado = []; | |
| document.querySelectorAll('div[data-testid="tracklist-row"]').forEach((el, i) => { | |
| const musica = el.querySelector('div.standalone-ellipsis-one-line')?.innerText || 'N/A'; | |
| const artista = el.querySelector('a[href*="/artist/"]')?.innerText || 'N/A'; | |
| if (musica !== 'N/A') { | |
| resultado.push(`${i+1}. ${musica} - ${artista}`); | |
| } | |
| }); | |
| console.log(resultado.join('\n')); |
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 extrair_mensagens(dataInicioStr, dataFimStr, filtroTexto = "") { | |
| function parseData(str) { | |
| const [dia, mes, ano] = str.split('/'); | |
| return new Date(`${ano}-${mes}-${dia}T00:00:00`); | |
| } | |
| const dataInicio = parseData(dataInicioStr); | |
| const dataFim = parseData(dataFimStr); | |
| dataFim.setHours(23, 59, 59, 999); |
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
| { | |
| "foods": [ | |
| { | |
| "id": "1", | |
| "name": "Strogonoff", | |
| "total_ingredients": "4", | |
| "time": 40, | |
| "cover": "https://i.imgur.com/or7Phgi.jpeg", | |
| "video":"https://www.youtube.com/watch?v=y9yKuT1m9LI", | |
| "ingredients": [ |
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
| Sub web_scraping() | |
| Dim ws As Worksheet | |
| Dim cpf, satate As Variant | |
| Dim nRows, activeRow As Integer | |
| Dim rg, sdRg As Range | |
| Dim ie As Object | |
| Dim msgErr As Integer | |
| Set ie = CreateObject("internetexplorer.application") |
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 idFolder = 'your folder id' | |
| const sheetName = 'csv' // name of the sheet that will receive data | |
| const separator = ";" // separator type | |
| const ui = SpreadsheetApp.getUi() | |
| const ss = SpreadsheetApp.getActive() | |
| const sh = ss.getSheetByName(sheetName) | |
| function onOpen() { | |
| ui.createMenu('CSVS') |
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
| html [theme-name]{ | |
| /* primary */ | |
| --p1: #ffffff; | |
| --p2: #f2f2f2; | |
| --p3: #e2e2e2; | |
| /* secondary */ | |
| --s1: #616161; | |
| --s2: #424242; | |
| --s3: #212121; |
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
| # local | |
| sed -i '' 's/oldword/newword/' file1.txt | |
| #VM | |
| sed -i 's/oldword/newword/' file1.txt | |
| #Replace especific line | |
| sed -i 'NumberLine's/.*/New line value/' initial_settings.sh |
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
| # for project already started | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/bionic64" | |
| config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "127.0.0.1" | |
| config.vm.synced_folder ".", "/vagrant" | |
| config.vm.provider "virtualbox" do |v| | |
| v.memory = "1024" | |
| v.cpus = 2 | |
| end |
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
| # for inicial project | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/bionic64" | |
| config.vm.network "forwarded_port", guest: 8080, host: 8080, host_ip: "127.0.0.1" | |
| config.vm.synced_folder ".", "/vagrant" | |
| config.vm.provider "virtualbox" do |v| | |
| v.memory = "1024" | |
| v.cpus = 2 | |
| end |
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
| from usuarios.models import * | |
| from django.conf import settings | |
| from django.utils.encoding import smart_str | |
| from django.core.mail import EmailMessage | |
| destinatarios = ['cesar@brbid.com'] | |
| leilao = 'APL01-18' | |
| colunas = ['Nome', 'Telefone', 'Email'] | |
| arquivo = ";".join(colunas) |
NewerOlder