Skip to content

Instantly share code, notes, and snippets.

View chrdiller's full-sized avatar
👋
Hi there

Christian Diller chrdiller

👋
Hi there
View GitHub Profile
@chrdiller
chrdiller / Blender as a Module.md
Last active May 20, 2024 12:10
Installing Blender Python Module on Ubuntu 20.04

Summary: How to install Blender as a python module into your venv:

Prerequisites

  • Install current python3.7 version with pyenv (Ubuntu 20.04 ships with 3.8)
    • Install with fPIC: env PYTHON_CFLAGS=-fPIC pyenv install 3.7.8
  • Install numpy globally for that version with pip

Installation

$ git clone https://git.blender.org/blender.git; cd blender
$ git checkout v2.82a

@chrdiller
chrdiller / list.c
Last active October 13, 2015 15:48
Simple test of lists in C
#include <stdio.h>
#include <stdlib.h>
#define p printf
#define s scanf
struct node
{
long int value;
struct node *next;