Skip to content

Instantly share code, notes, and snippets.

View vinicius507's full-sized avatar
👀
Looking for opportunities

Vinícius Gonçalves de Oliveira vinicius507

👀
Looking for opportunities
View GitHub Profile
@vinicius507
vinicius507 / test_gnl.py
Created December 21, 2022 23:45
Testing LIBFT functions using Python CFFI
##!/usr/bin/env python3
import pathlib
import tempfile
import unittest
import cffi
# You must compile a libft shared library
LIBFT_PATH = pathlib.Path("libft.so").absolute()
@vinicius507
vinicius507 / main.c
Last active March 14, 2022 15:39
Prova de Conceito AST básica
#define _GNU_SOURCE // asprintf needs it
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define ASSERT(EXPR, MSG) do {if (!EXPR) printf("Assertion error: %s, %s\n", #EXPR, MSG), exit(1);} while (0)
#define L_PIPE "|"
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.