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 requests | |
import xml.etree.ElementTree as ET | |
from colorthon import Colors as Fore | |
import sys | |
rd, gr, gy, bl, yl, cy, wh = Fore.RED, Fore.GREEN, Fore.GREY, Fore.BLUE, Fore.YELLOW, Fore.CYAN, Fore.WHITE | |
r = Fore.RESET | |
# Define Class |
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
//@version=5 | |
strategy(shorttitle="MMDRZA Bollinger Meta 0.1.0", title="Mmdrza - Bollinger Bands Strategy with New Algorithm for any chart", overlay=true, commission_type=strategy.commission.percent, commission_value=0.1, slippage=0, default_qty_type=strategy.percent_of_equity, default_qty_value=100) | |
// Inputs | |
length = input.int(20, minval=1, title="Length") | |
maType = input.string("SMA", "Basis MA Type", options = ["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"]) | |
src = input(close, title="Source") | |
mult = input.float(2.0, minval=0.001, maxval=50, title="StdDev") | |
offset = input.int(0, "Offset", minval = -500, maxval = 500) |
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/bash | |
install_blockhub() { | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" >&2 | |
exit 1 | |
fi | |
# check if is Mac OS | |
if [ "$(uname)" = "Darwin" ]; then | |
echo "This script must be run on Linux" >&2 |
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 json | |
import requests | |
import sys | |
from pathlib import Path | |
def query_ollama(prompt, model='mistral', context=''): | |
url = 'http://localhost:11434/api/generate' | |
data = {"model": model, "stream": False, "prompt": context+prompt} | |
response = requests.post(url, json=data) | |
response.raise_for_status() |
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
# github.com/Pymmdrza | |
# Encrypt and Compiled Command need Install : cython + wheel after install pack run in Root path Your Project: | |
# python Encrypte_Python_Source_Code.py build_ext --inplace | |
# Output : Generated And Converetd all Python Source code to C lang + Encrypte File with format : .pyd | |
# ----------------------------------------------------------- | |
from setuptools import setup, Extension | |
from Cython.Build import cythonize | |
import os | |
modules = [] |
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
# -------------------------------------- | |
# Programmer : github.com/PyMmdrza | |
# pip install tqdm ftplib boto3 pysftp | |
# -------------------------------------- | |
import ftplib | |
import pysftp | |
import boto3 | |
import tarfile | |
import zipfile | |
import os |
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 mysql.connector | |
# Source database connection configuration | |
SOURCE_DB_CONFIG = { | |
'host': 'source_db_host', | |
'user': 'source_db_user', | |
'password': 'source_db_password', | |
'database': 'source_db_name' | |
} |
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
# github.com/Pymmdrza | |
# source method use on project PyQt5 | |
import ctypes | |
import win32con | |
from PyQt5.QtCore import QThread, pyqtSignal | |
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QProgressBar, QPushButton | |
from win32process import SuspendThread, ResumeThread | |
class Worker(QThread): |
NewerOlder