Skip to content

Instantly share code, notes, and snippets.

View dracconi's full-sized avatar
🐈

Kacper dracconi

🐈
  • AIUT Sp. z o. o.
  • Silesia, Poland
  • 03:46 (UTC +02:00)
View GitHub Profile
@dracconi
dracconi / env_repair.c
Last active June 17, 2020 17:56
repairs path that's broken by windows update duh
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int needed_vars(int size) {
int vars_needed = size/2000;
if (vars_needed * 2000 < size) {
vars_needed++;
}
return vars_needed;
@dracconi
dracconi / parser.lua
Created March 13, 2019 21:00
parsing sexps to lua (currently it works on single line)
function parse(file, start, len)
local tree = {}
local curcmd = '' -- currently parsed command
local ix = start
file:seek("set", ix)
while(ix < len) do
local r = file:read(1)
ix = ix + 1
if r then
if r == "(" then
@dracconi
dracconi / pl-PL.yml
Created May 15, 2016 06:53
GlobalMarket translation - Polish
version: 1.2.2
selected: polish
polish:
you_have_new_mail: Masz nowa wiadomosc!
player_context_required: Wszystkie komendy wymagaja gracza!
cmd:
prefix: '§2[§4Market§f transalated by draconite§2] '
help: Wpisz /market ? dla pomocy
help_legend: 'Legenda: () opcjonalne, [] opisowe'
listings_syntax: /market listings (<search>)