Skip to content

Instantly share code, notes, and snippets.

View iczelia's full-sized avatar
❤️‍🔥

Kamila Szewczyk iczelia

❤️‍🔥
View GitHub Profile
@iczelia
iczelia / jelly-dataset.csv
Created March 10, 2023 15:59
5165 Jelly answers from CodeGolf StackExchange site.
We can't make this file beautiful and searchable because it's too large.
Author,Code
"66833","<h1><a href=""https://github.com/DennisMitchell/jelly"" rel=""nofollow noreferrer"">Jelly</a>, 13 bytes</h1>
<pre><code>Ḥ‘$3СẒḄ=ʋƇ13
</code></pre>
<p><a href=""https://tio.run/##y0rNyan8///hjiWPGmaoGB@ecGjhw12THu5osT3Vfazd0Pi/zuF2b5WsRw1zFGztFB41zNWM/P/f0EBHwdDUAEQaAAEA"" rel=""nofollow noreferrer"" title=""Jelly – Try It Online"">Try it online!</a></p>
<h2>How it works</h2>
<pre><code>Ḥ‘$3СẒḄ=ʋƇ13 - Main link. Takes an integer n on the left
ʋ 13 - Last 4 links as a dyad f(i, 13):
$ - Last 2 links as a monad g(i):
Ḥ - 2i

Keybase proof

I hereby claim:

  • I am kspalaiologos on github.
  • I am kspalaiologos (https://keybase.io/kspalaiologos) on keybase.
  • I have a public key whose fingerprint is 6C22 2EA6 B2BD 216A A406 516A C868 F0B6 DE38 409D

To claim this, I am signing this object:

<p id="p"></p>
<canvas style="border: 1px solid black"></canvas>
<script defer>
const q = document.querySelector("canvas")
let canstart = true
J=q.width=q.height=Math.min(500, document.querySelector("#p").clientWidth);Q='50px monospace';with(Math)with(C=q.getContext`2d`)with(X=Y=R=0,init=e=(e=>{w=f=Y=X=0,R=1,H=250,q.focus(),canstart=false,V=-10,P=[],(F=(e=>{e-w>1/60&&(Y&&(V=-10,Y=0),H+=V,V+=.8,P.forEach(e=>e.P-=3),f%50||P.push({P:J,L:150+(0|200*random()),C:'rgb('+255*random()+','+255*random()+','+255*random()+')'}),(P.some(e=>abs(e.L-H+2)>60&&0<e.P&&e.P<25)||H>J||H<0)&&(R=0,setTimeout(e=>{font=Q,fillStyle='red',fillText(':(',50,90),canstart=true},99)),clearRect(0,0,J,J),P.forEach(e=>{with(e){fillStyle=C,fillRect(P,0,20,L-60),fillRect(P,L+60,20,J-(L+60))}}),fillStyle='red',fillRect(20,H,10,10),font=Q,fillStyle='red',fillText(ceil(f/50-10/3),40,40),f++,w=e),R&&requestAnimationFrame(F)}))()}),document)onkeydown=(e=>{' '==e.key&&R?++Y:' '==e.key; if (canstart) {init()}}),onmousedown=(e=>{R&&++Y; if (canstart) {in
@iczelia
iczelia / snippets.sh
Created August 15, 2022 14:48
a few shell snippets
# Recursively unzip all .zip files to their respective directories.
find . -iname '*.zip' -exec sh -c 'unzip -o -d "${0%.*}" "$0"' '{}' ';'
@iczelia
iczelia / koth.c
Created April 9, 2022 16:10
KoTH round 2 bots
/* Bot 1 (umnikos) */
#define bot query_player1_move
#define bot_name player1_name
char * bot_name = "Homing missile v2";
int bot(board(b), int player) {
int me, them;
if (player == 'X') {
me = '*';
them = '@';
@iczelia
iczelia / keygen.asm
Created April 17, 2021 11:46
winimage10 keygen in asm2bf
stk 2
org 0
&name
#times("db 0", 32)
&standard
#times("db 0", 32)
&professional
#times("db 0", 32)
#gen_text("Name: ")
@input_loop
D'`%^"!=ZZGXyxwSStPr=N.nK+$GGF&ge#"!~,<N)([Zvotm3qpRQ.fNdihg`ed]\"ZB^]V[ZSwW9OTMq4PONGLEDhHG@?>=a`@?>=6Z4z216/.RsP*p.'K+k#G!g%$#"!x>=utsrwvun4lTjoh.fkdib(fHGcb[ZY}|\[ZYR:u8NMLQPIHlLEDIHG@dDCBA@?>76Z{9810Tut,+O/o',+$#G'&%|#"y?>_{tsrwvun4rqSong-Njchafedc\"`_XW{zZYR:uUTSLKonHMLEDCg*)E>CB;_?>=<|{92V65432r*NM-m%*#G'&}e#z!~}v<zyxZpo5slk1inmlkd*Kgfed]#aZB^]V[ZSwW9OTMq4PONGLEDhHG@?>=a`@">=6Z4z2V65432r*NM-m%*#G'&}e#z!~}v<tyrqpon4rqpRQ.lkdib(feG]#aZB^]V[ZSwW9OTMq4PONGLEDhHG@?>=a`@?>=6Z4327654-,P*p.',%$H(h&}$#z@aw=^zsrq7uWmlkjoh.-Njibgf_%cbDC_^W\UyYXQ9UTMqQ3IHMLEihHGFE>=<`#"8=6ZY9y765.-,+O/on,+*#G'gf|B"b~}|{ts9qYotsrk1onPf,dLbgfe^cbaZ~}W?[ZSRvPOTSLKoONGkE-CHAF?cb<$:?876Z{921U54t2+*N.-m%*#G'gf${z@~`_uts9wvotm32pRQ.fNdihg`ed]\"Z_X]VUZSwWVUTSR4o21GLEiIHG@(>b<$:?876Z:9876v.R2r0)(-&J*#"!~DC#zbxw=^zsrq7uWmlkjoh.-Njibgf_%F\a`_^]\[ZSwWVONrR4o2NGFEJCg*)ED=aA@"!7<5Y9876v.R2r0)(-&J*#"!~DCd"!x}v<zyxZpo5Vrqpihg-Njibgf_%cbD`YXW{UTSXQu8NMRQPImlLKDCBfF?>C<A:^>=<|{92V65432r*NM-m%*#G'gf|B"!~}_u;yxwvXnm3qSonmf,diha`e^$Ea`Y^WV[TxXW9OTMq4PO
@iczelia
iczelia / headtp1.py
Created April 7, 2021 15:29
Keep list's head intact, add 1 to the rest.
l=[1, 2, 3, 4]
import random
random.seed(176534382710603018985070461694376330091233904504513008469797409625321738010937873833208573530712592161075505626509892871204904463629472663584546104795791513378309640186065056892649553890588587628266151186823527191548888261345253829583194969458567150594043857230248378854918481204079131730688933383133983520456018192179620400698759545828994067437562288940651432228584077672432938345384025629444382015032260530773201076938172667176401256218722677313570979405835596397754292218504927873301624282921779716474905332998126738522637482919235118067538079152173142358421650307872462803536351332758049445949064417877701872879172592503076919426931540498511977033897041751918824439012554891176085383406602398927169405249558572722277526451855118496676546620123007212731687315828638561939337993269004083228529529941121862343983307450247229980219232116554421760726304414382760806216830223144753642756411985774996502921347276542880677109471858675742274169682474400137869917464172473077573802513284
@iczelia
iczelia / hello.mb
Last active May 10, 2024 07:50
A small hello world in malbolge
(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZ
@iczelia
iczelia / syscalls.c
Created March 17, 2020 19:36
A terrible abomination that disguises as syscalls for Win32
LONG __stdcall handler(EXCEPTION_POINTERS * ExceptionInfo) {
HMODULE library;
FARPROC procedure;
DWORD old_esp, return_adress;
if (ExceptionInfo->ExceptionRecord->ExceptionCode != EXCEPTION_ILLEGAL_INSTRUCTION) {
return 0;
}