This file contains 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
// ==UserScript== | |
// @name Tradingview Rotate | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.tradingview.com/chart/NrwqIuhp/ | |
// @grant none | |
// ==/UserScript== |
This file contains 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 multiprocessing | |
from multiprocessing import Pool | |
import pandas as pd | |
import numpy as np | |
def apply_parallel(df, func): | |
cores = multiprocessing.cpu_count() | |
partitions = np.array_split(df, cores) | |
with Pool(cores) as pool: |
This file contains 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
node: Platform built on V8 to build network applications | |
git: Distributed revision control system | |
wget: Internet file retriever | |
yarn: JavaScript package manager | |
python3: Interpreted, interactive, object-oriented programming language | |
python: Interpreted, interactive, object-oriented programming language | |
mysql: Open source relational database management system | |
coreutils: GNU File, Shell, and Text utilities | |
openssl: SSL/TLS cryptography library | |
postgresql: Object-relational database system |
This file contains 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
def facet(df): | |
template = """<link rel="import" href="/nbextensions/facets-dist/facets-jupyter.html"> | |
<facets-dive id="elem" height="600" style="width:125%"></facets-dive> | |
<script>var data = {jsonstr};document.querySelector("#elem").data = data;</script>""" | |
html = template.format(jsonstr=df.to_json(orient='records')) | |
display(HTML(html), ) |
This file contains 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
Contei meus anos e descobri que terei menos tempo para viver daqui para a frente | |
do que já vivi até agora. | |
Tenho muito mais passado do que futuro. | |
Sinto-me como aquele menino que recebeu uma bacia de cerejas. As primeiras, | |
ele chupou displicente, mas percebendo que faltam poucas, rói o caroço. | |
Já não tenho tempo para lidar com mediocridades. |