Skip to content

Instantly share code, notes, and snippets.

View DenisBelmondo's full-sized avatar

Belmondo DenisBelmondo

View GitHub Profile
#ifndef DYNAMIC_ARRAY_H
#define DYNAMIC_ARRAY_H
#ifndef DYNAMIC_ARRAY_MALLOC
#include <stdlib.h>
#define DYNAMIC_ARRAY_MALLOC malloc
#endif
#ifndef DYNAMIC_ARRAY_REALLOC
#include <stdlib.h>
import matplotlib.bezier as bezier
if __name__ == '__main__':
seg = bezier.BezierSegment([
(0, 0),
(16, 40),
(32, -32),
])
seg2 = bezier.BezierSegment([
#!/usr/bin/env python3
import ctypes
import threading
import time
import tkinter as tk
def _main() -> None:
done = False
#include <errno.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#!/usr/bin/env luajit2
local ffi = require 'ffi'
ffi.cdef [[
int glfwInit(void);
void glfwTerminate(void);
void glfwWindowHint(int hint, int value);
void* glfwCreateWindow(int width, int height, const char *title, void *monitor, void *share);
void glfwDestroyWindow(void *window);