Skip to content

Instantly share code, notes, and snippets.

View prp-e's full-sized avatar
😍

Muhammadreza Haghiri prp-e

😍
View GitHub Profile

You are an expert n8n workflow automation specialist. Your job is to create valid n8n workflow JSON based on user requests.

TODAY'S DATE: 2025-07-11

🚨 CRITICAL CLAUDE MODEL ENFORCEMENT: For ALL Anthropic Chat Model nodes, ALWAYS use "claude-sonnet-4-20250514" (Claude Sonnet 4). NEVER use "claude-3-5-sonnet-20241022" or any other older Claude models. This is MANDATORY for optimal performance. The model parameter MUST be: {"__rl": true, "value": "claude-sonnet-4-20250514", "mode": "list", "cachedResultName": "Claude Sonnet 4"}

🚨🚨🚨 CRITICAL AI AGENT PROMPT RULE - OVERRIDES ALL OTHER EXAMPLES 🚨🚨🚨

git clone https://github.com/opentensor/bittensor.git
cd bittensor
pip install -r requirements.txt
python -m bittensor.wallet --create
python -m bittensor.miner --subnet 21 --register
python -m bittensor.miner --subnet 21 --start

The following code is just the concept of "Virtual DOM" but written in python:

import copy 

class Node: 
    def __init__(self, tag, attributes, children): 
        self.tag = tag
        self.attributes = attributes
        self.children = children
@prp-e
prp-e / main.sh
Last active May 20, 2022 12:53
Tensorflow on a Pi
# APT Installations
sudo apt install gfortran
sudo apt install libhdf5-dev libc-ares-dev libeigen3-dev
sudo apt install libatlas-base-dev libopenblas-dev libblas-dev
sudo apt install liblapack-dev
# PIP Installations
pip3 install pybind11
pip3 install Cython==0.29.21
@prp-e
prp-e / employee.py
Created June 2, 2021 13:22
Employee Project
class Employee
def __init__(self, salary:float)
self.salary = salary
def calTax(self):
self.tax = 0
if self.salary <= 2300000:
self.tax = 0
elif 2300000 < self.salary <= 5000000:
self.tax = self.salary * 10 / 100
@prp-e
prp-e / key.txt
Created June 2, 2021 13:07
SSH Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDJZsg4S5e7XJls22oleSodDHzM0BWZzMXCha3Vkj92+R4lfh++3ZK3w0N7iz7wMhnQT9P9wouuGPId+Pvk+vM/b0mSL+SZCYb7aqZmrLo9/lWmZKnmdo7jDE3N2egjf/b+wov9vuGEaLR5ZBhgjVeP1tq8lrueCQty/z6ufSLNV96KKMh/FGyWsDSYTOuNS9ancRNT9Cmqw7RNHzMSRnCBF9/Mm46zFncAjKY9A3phaiH7yi0nqz7DM39Ndlakxt3oBzZRSo6OJ2UEpeCOImW13LUowQHr0VDEB64zKVQsow0GNkR/ivPCbV9vbWu67gbYMLXVwYnhCGTD6FxQVzAEqs2egIWyZx738scUWABUm7ybuTqNgjZls9bpRbXWNL/5y/ZmDE8lC2GB0rb0R0uHz87oEL99zBxcciP3+qNUvVz+7CwrSMoXPeGeRuoEhV3YRuFgApWyK3YtQxt6lXdvedIeFWJ6qGYktSRmlLIWSLTKnO2IfkTNUJ6E4F1z9ic= prp-e@samantha
# frozen_string_literal: true
class Users::RegistrationsController < Devise::RegistrationsController
# before_action :configure_sign_up_params, only: [:create]
# before_action :configure_account_update_params, only: [:update]
# GET /resource/sign_up
# def new
# super
# end
@prp-e
prp-e / app.rb
Created June 4, 2020 22:31
Sinatra auth app
require 'bcrypt'
require 'sinatra'
require 'sequel'
database = Sequel.connect("sqlite://db.sqlite")
###
#database.create_table :users do
# primary_key :id
@prp-e
prp-e / FreeGLUT
Created September 26, 2015 14:51
#include <iostream>
#include <GL/freeglut.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <GL/gl.h>
void display() {
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_POLYGON);
glVertex2f(-0.5, -0.5);