Skip to content

Instantly share code, notes, and snippets.

Pierre Paul Lefebvre PierrePaul

Block or report user

Report or block PierrePaul

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
@PierrePaul
PierrePaul / pedals.py
Last active Oct 12, 2017
pedals analog input to keystroke
View pedals.py
#!/usr/bin/python3
import evdev
from pykeyboard import PyKeyboard
device = evdev.InputDevice('/dev/input/event2')
k = PyKeyboard()
pressing_alt = False
pressing_ctrl = False
pressing_super = False
for event in device.read_loop():
@PierrePaul
PierrePaul / list.py
Created Apr 11, 2017
timetasks with git history
View list.py
#!/usr/bin/python3
import sh
from datetime import datetime, timedelta
user = input("Your name, in git : ")
if user == '':
user = 'Pierre Paul'
from_date = input("Starting date, with format YYYY-MM-DD : ")
@PierrePaul
PierrePaul / log.txt
Created Aug 18, 2016
pyside2 failing
View log.txt
Generating Shiboken documentation shiboken2...
Running process in /home/pierrepaul/Workbench/pyside-setup/pyside_build/py3.5-qt5.5.1-64bit-release/shiboken2: /usr/bin/make doc
/usr/bin/make doc
Installing module shiboken2...
Running process in /home/pierrepaul/Workbench/pyside-setup/pyside_build/py3.5-qt5.5.1-64bit-release/shiboken2: /usr/bin/make install/fast
/usr/bin/make install/fast
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/pierrepaul/Workbench/pyside-setup/pyside_install/py3.5-qt5.5.1-64bit-release/include/shiboken2/autodecref.h
-- Up-to-date: /home/pierrepaul/Workbench/pyside-setup/pyside_install/py3.5-qt5.5.1-64bit-release/include/shiboken2/basewrapper.h
View blockchain
Verifying that +pierrepaul is my blockchain ID. https://onename.com/pierrepaul
@PierrePaul
PierrePaul / stick.ts
Last active Sep 14, 2016
Phaser virtual joystick
View stick.ts
/// <reference path="../lib/phaser.d.ts"/>
/// <reference path="../lib/socket.io.d.ts"/>
/// <reference path="ship.ts"/>
module AstRoidGame {
export class ControlStick extends Phaser.Group {
controlField: Phaser.Sprite;
stickCenterPos: Phaser.Point;
stick: Phaser.Sprite;
game: Phaser.Game;
View keybase.md

Keybase proof

I hereby claim:

  • I am pierrepaul on github.
  • I am pierrepaul (https://keybase.io/pierrepaul) on keybase.
  • I have a public key whose fingerprint is EA1E 3720 1989 ED5C 4A1F 4CE7 FDFB 5B7D 6650 EDCB

To claim this, I am signing this object:

@PierrePaul
PierrePaul / Markdown
Last active Dec 13, 2015 — forked from micmcg/gist:976172
Markdown cheat sheet
View Markdown
# Header 1 #
## Header 2 ##
### Header 3 ### (Hashes on right are optional)
#### Header 4 ####
##### Header 5 #####
## Markdown plus h2 with a custom ID ## {#id-goes-here}
[Link back to H2](#id-goes-here)
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

You can’t perform that action at this time.