import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
data = {' A ': [0, 0, 0.012, 0, 0, 0, 0],
' B ': [0.1, 0, 0.035, 0.12, 0, 0, 0],
' C ': [0, 0, 0, 0, 0.5, 0, 0.2],
' D ': [0, 0.23, 0, 0, 0, 0, 0.33],
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
#!/bin/sh | |
# Pass one and only one symbol, ok? | |
symbol=$(echo $1 | tr '[:lower:]' '[:upper:]') | |
base_url="https://scanner.tradingview.com/symbol" | |
indicators="" | |
headers="-H 'accept: application/json' -H 'accept-language: en-US,en;q=0.6' -H 'cookie: _sp_ses.cf1a=*; _sp_id.cf1a=.1724704210.1.1724774007.1724704210.47da4b49-9fe0-4f61-80a6-e7a712d23368' -H 'dnt: 1' -H 'origin: https://www.tradingview.com' -H 'priority: u=1, i' -H 'referer: https://www.tradingview.com/' -H 'sec-ch-ua-platform: "Linux"' -H 'sec-fetch-dest: empty' -H 'sec-fetch-mode: cors' -H 'sec-fetch-site: same-site' -H 'sec-gpc: 1' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36'" |
Note: Recently my Archlinux distro stop responding to the shortcut Fn+F3 and Fn+F4 for screen brightness adjustment. Then I found this solution at: https://www.ejmastnak.com/tutorials/arch/backlight/.
cat /sys/class/backlight/intel_backlight/brightness
[ "$string1" = "$string2" ] && echo OK || echo NO
NewerOlder