Skip to content

Instantly share code, notes, and snippets.

View D0tty's full-sized avatar
🥰

Thomas Michelot D0tty

🥰
View GitHub Profile
@D0tty
D0tty / config.rasi
Created August 17, 2022 16:57
~/.config/rofi/config.rasi #For version: 1.7.4
@theme "lb"
configuration {
font: "mono 14";
modi: "window,run,ssh,drun";
kb-mode-next: "Shift+Right,Tab";
kb-mode-previous: "Shift+Left,ISO_Left_Tab";
kb-element-next: "Control+Tab";
kb-element-prev: "Control+ISO_Left_Tab";
kb-row-up: "Up,Control+p";
kb-row-tab: "";
@D0tty
D0tty / machin.py
Created November 2, 2020 19:55
machin.py iteration animation
import bpy
import bmesh
import csv
import ntpath
from mathutils import Vector
from bpy_extras.object_utils import object_data_add
path = '/home/ortes/GISTRE/GPGPU/icp-gpgpu/cmake-build-release/'
#path = '/home/ortes/GISTRE/GPGPU/icp-gpgpu/data_students/'
def instantiate(filename):
file = open(path + filename)
@D0tty
D0tty / bf.c
Created February 14, 2019 19:44
A simple brainfuck interpreter in C (update)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// initialize the tape with 30,000 zeroes
unsigned char tape[30000] = {0};
// set the pointer to point at the left-most cell of the tape
unsigned char* ptr = tape;