Skip to content

Instantly share code, notes, and snippets.

View albert-tomanek's full-sized avatar
🌳

Albert Tomanek albert-tomanek

🌳
View GitHub Profile
This file has been truncated, but you can view the full file.
Z2ltcCB4Y2YgZmlsZQAAAANVAAADdAAAAAAAAAARAAAAAQEAAAATAAAACENwAABD
cAAAAAAAFAAAAAQAAAAJAAAAFgAAAAQAAAABAAAAFQAAAUcAAAANZ2ltcC1jb21t
ZW50AAAAAAEAAAASQ3JlYXRlZCB3aXRoIEdJTVAAAAAAEGdpbXAtaW1hZ2UtZ3Jp
ZAAAAAABAAABAChzdHlsZSBzb2xpZCkKKGZnY29sb3IgKGNvbG9yLXJnYmEgMC4w
MDAwMDAgMC4wMDAwMDAgMC4wMDAwMDAgMS4wMDAwMDApKQooYmdjb2xvciAoY29s
b3ItcmdiYSAxLjAwMDAwMCAxLjAwMDAwMCAxLjAwMDAwMCAxLjAwMDAwMCkpCih4
c3BhY2luZyAxMC4wMDAwMDApCih5c3BhY2luZyAxMC4wMDAwMDApCihzcGFjaW5n
LXVuaXQgaW5jaGVzKQooeG9mZnNldCAwLjAwMDAwMCkKKHlvZmZzZXQgMC4wMDAw
MDApCihvZmZzZXQtdW5pdCBpbmNoZXMpCgAAAAAAAAAAAAAAAboAADmIAABssAAA
njUAAAAAAAAAAAAAAZ4AAAD4AAAAAQAAABgjaW5jbHVkZSA8aW9zdHJlYW0+IC4u
@albert-tomanek
albert-tomanek / gist:8573491140c658056ce08041144151b5
Created May 4, 2019 10:02
Všechny potencionální stavy jsou si velmi podobné
2019-05-04 09:46:06:obst.env:DEBUG - 1 1
2019-05-04 09:46:06:obst.eval:INFO - step 320
2019-05-04 09:46:06:obst.agent:DEBUG - current: [17.202475 18.212318 -0.5556414 -0.9398047]
2019-05-04 09:46:06:obst.agent:DEBUG - repr: [17.050493 18.055265 -0.5556436 -0.9303565] sim: [0.8685524] reward: [0.12643588]
2019-05-04 09:46:06:obst.agent:DEBUG - repr: [16.901426 17.899555 -0.55058944 -0.9223738 ] sim: [0.8312735] reward: [0.12471759]
2019-05-04 09:46:06:obst.agent:DEBUG - repr: [16.75602 17.74771 -0.54565835 -0.91458505] sim: [0.83439255] reward: [0.12303001]
2019-05-04 09:46:06:obst.agent:DEBUG - repr: [16.614193 17.599596 -0.5408489 -0.90698844] sim: [0.8765686] reward: [0.12138652]
2019-05-04 09:46:06:obst.agent:DEBUG - repr: [16.721779 17.712797 -0.54447633 -0.91270465] sim: [0.86182415] reward: [0.12239017]
2019-05-04 09:46:06:obst.agent:DEBUG - repr: [16.829363 17.826002 -0.5481038 -0.918421 ] sim: [0.90998864] reward: [0.12339233]
20
~> valgrind /opt/utopia/messenger/Utopia --help
==6161== Memcheck, a memory error detector
==6161== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6161== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==6161== Command: /opt/utopia/messenger/Utopia --help
==6161==
==6161== Conditional jump or move depends on uninitialised value(s)
==6161== at 0x5F851D: ??? (in /opt/utopia/messenger/Utopia)
==6161== by 0x5FB49A: ??? (in /opt/utopia/messenger/Utopia)
==6161== by 0x5FFB12: ??? (in /opt/utopia/messenger/Utopia)
// Compile: valac ex.vala --pkg gstreamer-1.0
//
// From VAPI:
//
// [ SimpleType ]
// public struct ClockTime : uint64
// {
// }
//
// From gstclock.h:
@albert-tomanek
albert-tomanek / gist:dcecc1620c5e99a3a25fbba3d0a9e96d
Created August 12, 2020 14:06
Scrape thispersondoesnotexist.com
def faces_datagen():
import urllib.request, io
while True:
batch = np.zeros((BATCH_SIZE, *imgdims))
for i in range(BATCH_SIZE):
data = urllib.request.urlopen(
urllib.request.Request(
'https://thispersondoesnotexist.com/image',
headers={'User-Agent':'Your user agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0'}
)
@albert-tomanek
albert-tomanek / golad1.py
Last active February 15, 2021 18:37
Conway's Game of Life and Death for Casio fx-CG50
# screen size: 21x7; Albert Tomanek (8B) 2021-02-15 http://github.com/albert-tomanek
import random
def screen(ls):ls=ls.split('|');[print(' '*(10-len(l)//2)+l) for l in ls];[print() for l in range(6-len(ls))];return input();
ltoi= lambda l:[int(x)for x in l]
screen("|Conway's Game|of Life and Death|By Albert Tomanek||Press ENT")
screen("|For instructions|visit: ||long.af/mhnjsz ")
screen("Enter coordinates| to toggle a cell,|or blank to run a|cycle. '*' starts|randomly. Use 'x'|to quit. ")
board = [[' ']*20 for q in range(6)]
toggle={'#':' ',' ':'#'}
{
"version": "2.1",
"groups": [
{
"name": "Synced substitutions",
"urls": [],
"substitutions": [
{
"input": "libtard",
"inputType": "text",
20210624000000 20210624185000 testovaci obdobi
20210803000000 20210803235959 belarus activist suicide
20210805120000 20210805235959 slovensko tornado
@albert-tomanek
albert-tomanek / legit news
Last active September 23, 2021 08:07
Trivial news marked as breaking
Processing articles...
Exception occured during loading of TN.cz.
Count: 160
distance: 0.0
current articles: [Covid pas prezidenta…, Macronův covid pas…]
new articles: []
closest theme in history: [Covid pas prezidenta…, Macronův covid pas…]
distance: 0.00037027595468548875
current articles: [Hamáček se v…, Hamáček se v…]
#!/bin/sh
tar czvf bomb.tgz .
echo "#!/bin/sh" >> bomb
chmod +x bomb
echo -n "echo " >> bomb
base64 -w 0 bomb.tgz >> bomb
echo " | base64 -d | tar zxf -" >> bomb