Skip to content

Instantly share code, notes, and snippets.

View zafercavdar's full-sized avatar
💻
coding

Zafer Cavdar zafercavdar

💻
coding
View GitHub Profile
% x represents series of number of random numbers
x = 100:2000;
% y represents estimated value of PI
y = zeros(1, length(x));
for i=1:length(x)
inliers = 0;
% get single value from the series
N = x(i);
% generate N random 2-D coordinates
@zafercavdar
zafercavdar / hwt.py
Last active March 29, 2023 05:04
PhBot HWT script
from math import sqrt
from phBot import log, set_training_radius, get_drops, generate_path, move_to, get_position, set_training_position, start_bot, stop_bot, get_monsters
import phBotChat
import QtBind
SCRIPT_ACTIVE = False
FLOOR_INDEX = None
REGISTERED_WALK = []
from sklearn.tree import export_graphviz
export_graphviz(best_model,
out_file='tree.dot',
feature_names = feature_pd.columns,
class_names = le.classes_,
rounded = True,
proportion = False,
precision = 2,
filled = True)
Sub groupTest()
ActiveSheet.Outline.SummaryRow = xlAbove
Dim sRng As Range
Dim eRng As Range
Dim rng As Range
Dim currRng As Range
Set currRng = Range("B2")
Set sRng = Range("B2")
@zafercavdar
zafercavdar / reformatter.py
Created August 7, 2023 11:10
Excel content reformatting
import argparse
import re
import pandas as pd
parser = argparse.ArgumentParser(description="Reformatter app")
parser.add_argument("path", type=str, help="Path to an Excel file")
def uppercase_first_letter(text: str) -> str: