Skip to content

Instantly share code, notes, and snippets.

function EnsureStaticObject(objectName, retryInterval)
LogMessage(string.format("EnsureStaticObject: %s", objectName))
local objectToFind = nil
while not (objectToFind and objectToFind:IsValid()) do
LogMessage(string.format("Calling StaticFindObject: %s", objectName))
objectToFind = StaticFindObject(objectName)
end
LogMessage("EnsureStaticObject Finished")
local normalSpeed = 1.0
local slowMoSpeed = 0.1
local settings = nil
local originalHealthRegenBase = 0.0
local originalHealthRegenOutsideCombatMult = 0.0
local originalFatigueRegenBase = 0.0
local originalFatigueRegenOutsideCombatMult = 0.0
local originalNewFormulaMagickaReturnLinearMult = 0.0
local originalMagickaRegenOutsideCombatMult = 0.0
@Priler
Priler / main.lua
Created May 6, 2025 23:01
Workaround for first bow shoot menu open
--BowReleaseAnimationCancel
-- CONFIG
---------------------------------------------------------------------------------------------------------------------------
--if you dont like that the animation is canceled the moment the arrow is shot, you can change this value to something > 0:
local DelayInMillisecondsForAnimationCancel = 10
-- set to true if you want to disable the insta draw feature.
local DisableInstaDraw = false
@Priler
Priler / settings.json
Created October 24, 2023 09:46
VSCode custom settings
"files.autoSave": "onFocusChange",
"editor.renderWhitespace": "trailing",
"editor.wordWrap": "on",
"editor.guides.bracketPairs": "active",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.fontLigatures": true,
"editor.suggest.preview": true,
"files.insertFinalNewline": true,
@Priler
Priler / config.py
Created February 28, 2023 17:19
Python Aiogram ChatGPT simple bot via OpenAI
TOKEN = "<telegram-bot-token>" # obtained from @BotFather
OPENAI_TOKEN = "<openai-api-key>" # obtained from https://platform.openai.com/account/api-keys
@Priler
Priler / motiondetect.py
Created May 17, 2022 17:15
Python + OpenCV hand motion detection
import cv2
import numpy as np
from collections import deque
from enum import Enum
import time
import pyautogui
# инициализируем
video = cv2.VideoCapture(1) # id устройства камеры
hands_haar_cascade = cv2.CascadeClassifier("rpalm.xml")
@Priler
Priler / pywebio_online_chat.py
Created October 22, 2021 12:53
Simple online chat on Python in less than 100 lines of code
import asyncio
from pywebio import start_server
from pywebio.input import *
from pywebio.output import *
from pywebio.session import defer_call, info as session_info, run_async, run_js
chat_msgs = []
online_users = set()
@Priler
Priler / python_speedtest.py
Created September 15, 2021 06:53
Check internet speed in Python
from rich import print
from rich.console import Console
from speedtest import Speedtest
console = Console()
st = Speedtest()
with console.status("[bold green]Замеряю скорость интернета...") as status:
dl_speed = int(st.download() / 8000)
height = float(input("Введите свой рост (см): "))
weight = float(input("Введите свой вес (кг): "))
BMI = float("{0:.2f}".format(weight / ((height / 100) * (height / 100))))
print(f"Ваш текущий ИМТ равен {BMI}")
if(BMI > 40):
print("Ожирение III степени")
elif(BMI >= 35):
import turtle
colors = ['red', 'blue', 'purple', 'green',
'orange', 'yellow']
t = turtle.Pen()
turtle.bgcolor('black')
t.hideturtle()
for x in range(360):