Skip to content

Instantly share code, notes, and snippets.

@PierrePaul
PierrePaul / pedals.py
Last active October 12, 2017 17:35
pedals analog input to keystroke
#!/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 April 11, 2017 15:56
timetasks with git history
#!/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 August 18, 2016 21:47
pyside2 failing
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
Verifying that +pierrepaul is my blockchain ID. https://onename.com/pierrepaul
@PierrePaul
PierrePaul / stick.ts
Last active September 14, 2016 08:16
Phaser virtual joystick
/// <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;
@PierrePaul
PierrePaul / keybase.md
Last active October 12, 2015 13:46
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 May 1, 2022 17:08
Markdown cheat sheet
# 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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: