Skip to content

Instantly share code, notes, and snippets.

Gabriel de Perthuis g2p

Block or report user

Report or block g2p

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@g2p
g2p / myocamlbuild.ml
Created Oct 19, 2016
qtest extract ocamlbuild integration
View myocamlbuild.ml
open Ocamlbuild_plugin;;
rule "qtest extract"
~prod:"%_tests.ml"
~deps:["%.ml"]
(fun env build ->
Cmd(S[A"qtest"; A"extract"; A"-o"; P(env "%_tests.ml"); P(env "%.ml")]))
@g2p
g2p / layouts.py
Last active Jan 4, 2016
Detect keyboard layouts (azerty, qwertz, others) using SDL2
View layouts.py
#clone https://bitbucket.org/marcusva/py-sdl2
"""
Distinguish azerty/qwerty/qwertz
After experimenting, must SDL_INIT_VIDEO and use
SDL_GetKeyFromScancode or SDL_GetScancodeFromKey
The mapping is cached by SDL2;
enable the event loop or use SDL_Quit to detect again.
@g2p
g2p / pip.1
Created Dec 23, 2011
pip manpage
View pip.1
'\" t
.\" Title: pip
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
.\" Date: 11/30/2009
.\" Manual:
.\" Source:
.\" Language: English
.\"
.TH "PIP" "1" "11/30/2009" "" ""
You can’t perform that action at this time.