Skip to content

Instantly share code, notes, and snippets.

View Nircek's full-sized avatar

Marcin Zepp Nircek

View GitHub Profile
#!/usr/bin/python3
from random import random
from sys import argv
class Map:
def __init__(self,W,H):
self.W=W
self.H=H
self.X = -1
self.Y = -1
self.m = []
@Nircek
Nircek / cry.py
Created October 3, 2018 17:25
SUBcipher
#!/usr/bin/env python3
a=open('in.txt', 'rb').read()
d = 0
e = b''
for i in a:
if d > i:
d -= 256
e += bytes([i-d])
d = i
open('out.bin', 'wb').write(e)
UB7zv1T+9blG/L5Q/voMAfK5SA2Y/Wzrv1rytEII979V/fwDnP1CFga4V/H+AblTBukM+blHDvn0
BgwBt+H9Od1Q/vPGQLlQ/vkJBatM9gal/UQTEK82ylD+879I+QIP8wEBB/MQu+H9Zfn/uVD+88ZA
uVP7AgKuRw79rlP/+g396xOZ/T0u+fm5NtFTplfx/gG5TvMBBQ7987tS7xCc/QP9JgEAAAD/AQAA
/wHc/Sf/AAH/AAABAAD/3f0mAAH/AQAA/wH/Adz9J/8AAf8AAAAAAf/d/SYAAQD/Af8B/wAA3f0m
AAAAAAEAAAAAANz9J/8AAQAAAAAA/wHc/Sf/AAABAAD/Af8A3f0mAf8AAAAAAf8BANz9JgAB/wAA
AAAAAf/d/ScA/wAAAQAAAAAA3P0D/RbCtPJatPJatPJatPKYwrTyWrTyWrTymMK08oX92LTymADC
tPKYAADCtPJatPJatPKF/RYAwrTymMK08lq08lq08pjCtPKYwrTyhf3YtPKYAMK08pgAAAAAwrTy
hf0WAMK08lq08pjCtPKYwrTyhf0WAAAAAMK08lq08lq08lq08lq08lq08oX92LTymADCtPJatPJa
tPJatPJatPJatPKYwrTyhf3YtPKYAADCtPJatPJatPKYwrTyhf0WwrTymAAAAADCtPKYwrTyWrTy
hf0WAMK08pgAAAAAAMK08oX92LTyWrTymAAAwrTyWrTyWrTyWrTyWrTyWrTy
@Nircek
Nircek / keybase.md
Created November 6, 2018 10:13
keybase.md

Keybase proof

I hereby claim:

  • I am Nircek on github.
  • I am nircek (https://keybase.io/nircek) on keybase.
  • I have a public key whose fingerprint is 93F9 9DE4 C1D2 7DB2 64ED 91BD 38A9 2C1A 795C 48A2

To claim this, I am signing this object:

@Nircek
Nircek / main.cpp
Last active November 28, 2018 19:50
The 3line ROT function in C++
/*
MIT License
Copyright (c) 2018 Nircek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Nircek
Nircek / cry-interactive.py
Last active July 17, 2019 07:05
NR4C-6 Python implementation
#!/usr/bin/env python3
# file from https://gist.github.com/Nircek/0433de96c5384c969cfb0536281c0188
# licensed under MIT license
'''
MIT License
Copyright (c) 2018-2019 Nircek
Permission is hereby granted, free of charge, to any person obtaining a copy
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# file from https://github.com/Nircek/minesweeper-solver [edited during solving https://www.codewars.com/kata/mine-sweeper/train/python]
# licensed under MIT license
# MIT License
# Copyright (c) 2018 Nircek
# Permission is hereby granted, free of charge, to any person obtaining a copy
@Nircek
Nircek / tank1.svg
Last active January 13, 2019 10:25
The Tank
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Nircek
Nircek / pawletto.py
Last active February 21, 2019 13:30
The script solving 2019 calendar cipher (cipher by Pawletto K.)
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# MIT License
# Copyright (c) 2019 Nircek
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@Nircek
Nircek / loginpass.py
Last active December 21, 2024 11:37
Simpledialog getting username and password credentials in Python3 Tkinter
#!/usr/bin/env python3
# MIT License
# Copyright (c) 2018 Nircek
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell