Skip to content

Instantly share code, notes, and snippets.

View LaBlazer's full-sized avatar
😢
C++rying

LBLZR_ LaBlazer

😢
C++rying
View GitHub Profile
@LaBlazer
LaBlazer / miniaplikace_bot.py
Last active October 1, 2018 10:59
Vote bot for miniaplikace.blueboard.cz
import http.client, time, re, random, logging, sys, requests, threading, asyncio
from proxybroker import Broker
from requests.packages.urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from random import randint
##Made by @LBLZR_
##Released under do What The Fuck you want to Public License
##http://www.wtfpl.net/txt/copying/
## Setup ##
// ==UserScript==
// @name SteamTrades Auto Bump
// @namespace ST_AUTOBUMP
// @author LBLZR_
// @description Bumps the post every 60 minutes + random drift
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @include https://*.steamtrades.com/trade/*
// ==/UserScript==
function getRandomInt(min, max) {
@LaBlazer
LaBlazer / obj_mgr.lua
Last active June 17, 2020 08:14
CheatEngine WoW 1.12.1 ObjectManager/PlayerBase memory offset finder
--Tiny ObjectManager/PlayerBase finder for WoW 1.12.1
--Made by LBLZR_
objType = {"None", "Item", "Container", "Unit", "Player", "GameObject", "DynamicObject", "Corpse"}
curObj = readInteger("[0xB41414]+0xAC")
playerGuid = readInteger("[0xB41414]+0xC0")
playerAddress = 0
while ((curObj ~= 0) and ((curObj & 1) == 0)) do --iterate over all objects
print("Obj: ", string.format('0x%0X', curObj),
"\t| Type: ", objType[readInteger(curObj + "0x14")+1],
@LaBlazer
LaBlazer / zlate_stranky_name_scraper.py
Last active June 10, 2020 06:42
Stript that scrapes the page zlatestranky.sk for names and surnames
#Made by LBLZR_
#Blah, blah, blah, uses Apache license...
import requests, json, re, os.path, codecs, time, sys
from concurrent.futures import ThreadPoolExecutor
from bs4 import BeautifulSoup
from time import sleep
NAMES_FILENAME = "sk_names.txt"
SURNAMES_FILENAME = "sk_surnames.txt"
@LaBlazer
LaBlazer / sk_names_sorted.txt
Last active September 2, 2019 15:49
Mostly slovak names and surnames scraped from zlatestranky.sk
Ľúbomír
Ľadislav
Ľadmila
Ľachová
Ľdovít
Ľibuša
Ľubčo
Ľuba
Ľubica
Ľubice
@LaBlazer
LaBlazer / doggo_bot.py
Created February 23, 2018 17:40
Discord bot that posts a doggo picture
# Pls no stealerino licence
import discord, asyncio, os, random
IMG_FOLDER = "dogs"
BOT_TOKEN = "SECRET"
IMG_MESSAGE = ":dog: :dog: :dog:"
client = discord.Client()
if not os.path.isdir(IMG_FOLDER + "/"):
@LaBlazer
LaBlazer / hangman.cpp
Last active September 2, 2019 15:46
Simple hangman game made in C++ using SFML library
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
int main()
{
std::vector<std::string> wordlist;
@LaBlazer
LaBlazer / 44.cpp
Last active October 1, 2018 10:58
4x4 game solver
#include <iostream>
#include <thread>
#include <vector>
struct Node {
bool WalkedRight;
bool WalkedDown;
Node() {
WalkedRight = false;
@LaBlazer
LaBlazer / knights_tour.cpp
Last active June 24, 2019 21:02
Bruteforce algorithm for calculating Knight's Tour problem
//Copyright LBLZR_
#include <iostream>
#include <vector>
const std::pair<int, int> POSSIBLE_MOVES[] = { {2, -1}, {2, 1}, {1, 2}, {-1, 2}, {-2, 1}, {-2, -1}, {-1, -2}, {1, -2} };
const unsigned int POSSIBLE_MOVES_AMOUNT = sizeof(POSSIBLE_MOVES) / sizeof(POSSIBLE_MOVES[0]);
template <size_t rows, size_t cols>
void copyArray(bool(&in)[rows][cols], bool(&out)[rows][cols]) {
for (unsigned int x = 0; x < rows; x++)
@LaBlazer
LaBlazer / main.cpp
Last active December 5, 2018 13:33
Default progtest cpp file
#ifndef __PROGTEST__
#define pause() system("pause");
#else
#define pause();
#endif
#include <iostream>
int main() {
std::cout << "test" << std::endl;