flowchart LR
A("Begin") --> B["Get Ticker Price"]
B --> C["Save Ticker Price in History"]
C --> D{"Is Ticker Price the Lowest in History?"}
D -- No --> B
D -- Yes --> E["Calc Fees to Buy"]
E --> F{"With Fees, is Buy Ticker Price good?"}
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
<?xml version="1.0" encoding="UTF-8"?> | |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> | |
<key id="name" for="node" attr.name="name" attr.type="string"/> | |
<key id="id" for="node" attr.name="id" attr.type="long"/> | |
<key id="labels" for="node" attr.name="labels" attr.type="string"/> | |
<key id="label" for="edge" attr.name="label" attr.type="string"/> | |
<graph id="G" edgedefault="directed"> | |
<node id="1" labels=":Person"> |
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.from(document.getElementsByTagName('iframe')).map(i => i.src = i.src.replace('/ia20251.', '/iaead.')) |
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
// Wait an audio finish to start playing others | |
const a = document.createElement('div') | |
a.style.zIndex = '999999' | |
a.style.position = 'fixed' | |
a.style.color = '#000000' | |
a.style.backgroundColor = '#ff9900' | |
a.style.bottom = '0px' | |
a.style.right = '0px' | |
a.style.width = '300px' |
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 openjdk:8-jdk | |
RUN apt update -y | |
RUN apt install -y android-sdk | |
RUN curl "https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh" | bash - | |
RUN \. "$HOME/.nvm/nvm.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
# Retorna dados sobre o pregão | |
http://www.bmfbovespa.com.br/Pregao-Online/ExecutaAcaoCarregarDados.asp?CodDado=IBOV,ticker&CA=undefined | |
# Retorna ações e seus últimos valores negociados | |
http://www.bmfbovespa.com.br/Pregao-OnLine/ExecutaAcaoCarregarDados.asp?CodDado=Ticker | |
# Retorna o histórico do dia de um papel | |
http://www.bmfbovespa.com.br/Pregao-Online/ExecutaAcaoCarregarDadosPapeis.asp?CodDado=petr4 | |
# Retorna dados de um papel |
URL: wss://ws.eodhistoricaldata.com/ws/us?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX
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 fs = require('fs') | |
const path = require('path') | |
const file = fs.readFileSync(process.argv[2]) | |
const json = JSON.parse(file) | |
console.log({ json }) |
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
http { | |
server { | |
listen 80; | |
server_name example.com; | |
location / { | |
proxy_pass http://127.0.0.1:3000; # Forward requests to another server | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
@import "tailwindcss"; |
NewerOlder