- Developped under Python 3.7.12
- Standalone script which parse hackmd markdown (including imgur link) and create directory (from tags) with downloaded imgur link
- To use,
python3 script.py --zip_file <file.zip>
- To export your hackmd markdown as zip file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define ARCH_X86_64 1 | |
; sad_16x16, 4, 7, 5, src, src_stride, dst, dst_stride, src_stride3, dst_stride3, cnt | |
; function_name, #args (%1), #regs (%2), #xmm_regs (%3), [stack_size,] (%4) arg_names... (%5-*) | |
%macro PUSH_IF_USED 1-* | |
%rep %0 | |
%if %1 < regs_used | |
push r%1 | |
%endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
nasm -f elf64 main.asm | |
gcc -g -nostartfiles -no-pie -o main main.o | |
debug: | |
echo "dashboard -output /dev/pts/0\nb _start\nrun >> gdb-log.txt 2>&1\nlayout asm\ndashboard assembly\ndashboard source\ndashboard threads\nset logging file gdb-log.txt\nset logging on\nset trace-commands on\nrecord\n" > gdb-commands.txt | |
gdb -x gdb-commands.txt main | |
clean: | |
rm *.o main gdb-commands.txt gdb-log.txt .gdb_history |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME = libasm.a | |
SRCS = block_avg.asm | |
OBJS = $(SRCS:.asm=.o) | |
all: | |
nasm -g -f elf64 ${SRCS} | |
gcc -g -c main.c -o main.o | |
ar rc $(NAME) $(OBJS) | |
gcc -g main.o $(NAME) -o main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME = libasm.a | |
SRCS = fill_mat.asm | |
OBJS = $(SRCS:.asm=.o) | |
all: | |
nasm -g -f elf64 ${SRCS} | |
gcc -g -c main.c -o main.o | |
ar rc $(NAME) $(OBJS) | |
gcc -g main.o $(NAME) -o main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME = libasm.a | |
SRCS = dot_product.asm | |
OBJS = $(SRCS:.asm=.o) | |
all: | |
nasm -g -f elf64 ${SRCS} | |
gcc -g -c main.c -o main.o | |
ar rc $(NAME) $(OBJS) | |
gcc -g main.o $(NAME) -o main | |
NewerOlder