Skip to content

Instantly share code, notes, and snippets.

View liubenyuan's full-sized avatar
📺
ADI

liubenyuan liubenyuan

📺
ADI
View GitHub Profile
@liubenyuan
liubenyuan / fix-infinality.md
Created August 3, 2019 17:10 — forked from cryzed/fix-infinality.md
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@liubenyuan
liubenyuan / weight-fun-oit.py
Created March 24, 2016 11:38
plot weighting function of oit
# plot weight of oit
import matplotlib.pyplot as plt
import numpy as np
N = 1000
z = np.linspace(1, 500, N)
def clamp(a, amin, amax):
@liubenyuan
liubenyuan / vispy-oit.py
Last active March 24, 2016 11:49
porting oit from the glumpy project to vispy
""" port oit, copied from glumpy """
import numpy as np
from vispy import app, gloo
from vispy.util.transforms import translate, perspective, rotate
vert_quads = """
uniform mat4 u_model;
uniform mat4 u_view;
uniform mat4 u_projection;