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
| $url = 'https://resultados.tse.jus.br/oficial/ele2022/544/dados-simplificados/br/br-c0001-e000544-r.json' | |
| $result = (Invoke-WebRequest -Method GET $url).Content | ConvertFrom-Json | Select-Object -Expand cand | |
| $result | Select seq, @{l='Candidato';e='nm'}, @{l='Votos válidos';e='vap'}, @{l='%';e='pvap'} |
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
| 00020126540014br.gov.bcb.pix0132pix_marketplace@mercadolibre.com52040000530398654072299.005802BR59091P CE_MLB6007Cajamar62240520mpqrinter147347763636304EB89 |
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
| public validateJSON(text: string): boolean { | |
| return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test( | |
| text.replace(/"(\\.|[^"\\])*"/g, ''))) && | |
| eval('(' + 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
| { | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ | |
| { |
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
| exports = async function(args){ | |
| console.log({args: args}); | |
| const api_url = "https://maker.ifttt.com"; | |
| const request_path = "/trigger/{webhook_event}/with/key/{your_ifttt_private_key}"; | |
| const ifttt = context.services.get("your-service-name"); | |
| const response = await ifttt.post({ | |
| url: api_url + request_path, | |
| encodeBodyAsJSON: true, | |
| body: { |