Skip to content

Instantly share code, notes, and snippets.

View adrianp's full-sized avatar
💀
Hey there! I am using WhatsApp.

Adrian-Tudor Panescu adrianp

💀
Hey there! I am using WhatsApp.
View GitHub Profile
@adrianp
adrianp / 40-libinput.conf
Last active January 8, 2023 08:39
Enable scroll for the Logitech Trackman Marble mouse on Ubuntu 17.04
# The lines below go into: /usr/share/X11/xorg.conf.d/40-libinput.conf
# Last tested on Ubuntu 18.04 on 13.08.2018
#
# Enable scroll wheel emulation for the Logitech Trackman Marble mouse. Holding
# the small right button will allow you to scroll both vertically and
# horizontally using the ball; for using the left small button use 8 for
# ScrollButton.
# Source: https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse#Using_libinput
# This config also disables the browser back/forward functionality of the small buttons
# and is intended for left-hand users.
@adrianp
adrianp / citeproc-py_example.py
Last active August 18, 2017 12:56
Minimal citeproc-py example
# https://github.com/brechtm/citeproc-py
# https://github.com/citation-style-language/styles
from citeproc.py2compat import *
from citeproc import formatter, Citation, CitationItem, CitationStylesStyle, CitationStylesBibliography
from citeproc.source.json import CiteProcJSON
def get_citation(data, style):
bib_source = CiteProcJSON(data)