Skip to content

Instantly share code, notes, and snippets.

View VladimirYugay's full-sized avatar

Vladimir Yugay VladimirYugay

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

@SamvitJ
SamvitJ / Paxos.txt
Created October 23, 2016 17:36
Paxos Pseudocode
--- Paxos Proposer ---
proposer(v):
choose n > n_p
send prepare(n) to all servers including self
if prepare_ok(n, n_a, v_a) from majority:
v’ = v_a with highest n_a; choose own v otherwise
send accept(n, v’) to all
if accept_ok(n) from majority:
send decided(v’) to all