Skip to content

Instantly share code, notes, and snippets.

View ThePooN's full-sized avatar

Hugo Denizart ThePooN

View GitHub Profile
@ThePooN
ThePooN / Enum.class.php
Created July 8, 2016 23:15 — forked from celianvdb/Enum.class.php
Simple Enum class
<?php
class Enum
{
private $enumsList = array();
private $reverseList = array();
public function __construct(array $enums)
{
@ThePooN
ThePooN / razer-bwu13-macro.py
Last active August 29, 2015 14:25 — forked from MatejLach/razer-bwu13-macro.py
Razer BlackWidow keyboard - enable macro keys on Linux - updated for the 2013 Ultimate version.
#!/usr/bin/env python2
# blackwidow_enable.py
#
# Enables the M1-5 and FN keys to send scancodes on the Razer BlackWidow
# and BlackWidow Ultimate keyboards.
#
# You can use 'xev' and 'xbindkeys' to assign actions to the macro keys.
#
# Requires the PyUSB library.