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
{ | |
"workbench.colorCustomizations": { | |
"editor.background": "#22242d", | |
"editor.foreground": "#D4D4D4", | |
"editor.selectionBackground": "#3f5e86", | |
"editor.lineHighlightBackground": "#333a4578", | |
"editorCursor.foreground": "#5cb5ff", | |
"terminal.background": "#36373b", | |
"terminal.foreground": "#D4D4D4", | |
"terminal.selectionBackground": "#264F78", |
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
# credit by : Pymmdrza.github.io | |
import random | |
from datetime import date | |
OS_CHOICES = { | |
"Macintosh": ["68K", "PPC", "Intel Mac OS X"], | |
"Windows": [ | |
"Win3.11", | |
"WinNT3.51", | |
"WinNT4.0", |
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 gradio as gr | |
from transformers import pipeline | |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog") | |
def predict(input_img): | |
predictions = pipeline(input_img) | |
return input_img, {p["label"]: p["score"] for p in predictions} | |
gradio_app = gr.Interface( |
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 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 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
//@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 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
#!/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 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 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 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
# 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 = [] |
NewerOlder