Skip to content

Instantly share code, notes, and snippets.

t='t=\'t=\\\'t=\\\\\\\'\\\\\\\';s=\\\\\\\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\\\\\\\';exec(s)#\\\';s=\\\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\\\';exec(s)#t=\\\'\\\';s=\\\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\\\';exec(s)#\';s=\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\';exec(s)#t=\'t=\\\'\\\';s=\\\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\\\';exec(s)#\';s=\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\';exec(s)#t=\'\';s=\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\';exec(s)#';s='t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")';exec(s)#t='t=\'t=\\\'\\\';s=\\\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\\\';exec(s)#\';s=\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\';exec(s)#t=\'\';s=\'t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")\';exec(s)#';s='t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")';exec(s)#t='t
#!/usr/bin/env bash
###
### usage: bash run_intron.sh N
### N: number of runs
###
cp intron_orig.py intron.py
i=0
while [ $i -lt $1 ]
do
t='';s='t=input()or t;print(f"t={repr(t)};s={repr(s)};exec(s)#{t}")';exec(s)#
s='s=%r;print(s%%s)';print(s%s)
@cemysf
cemysf / stack_images.py
Created March 6, 2019 10:25
stacking images
"""
assuming we have 4 images and we need to show them on one window
img1 | img2
------|-------
img3 | img4
note: images should have the same shape
"""
#include <errno.h>
#include <fcntl.h>
#include <linux/videodev2.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <opencv2/core/core.hpp>