Skip to content

Instantly share code, notes, and snippets.

View tpoisot's full-sized avatar

Timothée Poisot tpoisot

View GitHub Profile
@cryzed
cryzed / fix-infinality.md
Last active August 31, 2024 13:05
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:

@HeirOfNorton
HeirOfNorton / criticpandoc.py
Created December 13, 2014 20:09
Pandoc filter to convert Critic Markup to Spans (which will be converted to Tracked Changes in Docx).
#!/usr/bin/env python
"""
Pandoc filter to parse CriticMarkup into Spans for
Insertion and Deletion. The Docx writer will convert
these into Tracked Changes.
A comment immediately after a change will be parsed
for "author: The Author" and "date: 12-21-12", which
will be inserted into the Span as appropriate.
@red-noise
red-noise / Spotify script for conky
Last active April 29, 2021 04:51
Spotify script for Conky
#This is ho you should edit your conkyrc file in order to get the spotify player.
####################
# - MEDIA PLAYER - #
####################
${if_running spotify}${voffset -2}${font Liberation Sans:style=Bold:size=8}
${voffset -10}${goto 73}Title:
${goto 73}${color2}${exec ~/.conkycolors/spotify/spotify_info_title}${color}
${goto 73}Artist:
@tpoisot
tpoisot / zotero-standalone.desktop
Last active September 27, 2018 21:40
zotero desktop file for the standalone version in fedora -- https://developer.gnome.org/integration-guide/stable/desktop-files.html.en
[Desktop Entry]
Name=Zotero Standalone
Exec=/usr/local/bin/Zotero_linux-x86_64/zotero
Icon=/usr/local/bin/Zotero_linux-x86_64/chrome/icons/default/default48.png
Type=Application
Categories=Education;
anonymous
anonymous / stck.js
Created February 19, 2013 01:52
Alternative to stacked barchart in D3.js
var margin = {top: 20, right: 50, bottom: 30, left: 40},
width = 600 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var OffSet = 0.85;
var x = d3.scale.ordinal()
.rangeRoundBands([0, width], .1);
var y = d3.scale.linear()
anonymous
anonymous / pybl.py
Created December 14, 2012 14:53
Beta-diversity of networks, using python and networkx
import networkx as nx
def B01(a,b,c):
return (a+b+c)/(float((2*a+b+c)*0.5))-1
def BetaLink(w1,w2,Bf=B01):
SharedS = list(set(w1.node) & set(w2.node))
SharedE = list(set(w1.edges()) & set(w2.edges()))
## Species
Sc = len(w1.node)-len(SharedS)
@sckott
sckott / matricesfromabddist.r
Created August 28, 2012 00:27
Make network matrices from abundance distributions and calculate network structures
#######################################################
###########Community-Network Structure Simulation######
#######################################################
library(bipartite)
# Set of mean and sd combinations of log-normal distribution
mu<-c(0.5,2.9,5.3)
sig<-c(0.75,1.6,2.45)
make.matrices<-function(a,b,nmats){
@PhDP
PhDP / testweave.py
Created December 13, 2011 22:02
Weave example
# Example with weave
#
# Required packages (linux): python-scipy, python-dev
#
# phdp@thinkpad:~$ python testweave.py
# 9784957257.9
import numpy as np
from scipy.weave import inline
@jessykate
jessykate / Jekyll nd Octopress Liquid tag for MathJax.rb
Created February 18, 2011 23:37
A simple liquid tag for Jekyll/Octopress that converts {% m %} and {% em %} into inline math, and {% math %} and {% endmath %} into block equations, by replacing with the appropriate MathJax script tags.
module Jekyll
class MathJaxBlockTag < Liquid::Tag
def render(context)
'<script type="math/tex; mode=display">'
end
end
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'
end