Skip to content

Instantly share code, notes, and snippets.

@Hakej
Hakej / razer-bwu13-macro.py
Last active September 16, 2021 18:54 — forked from MatejLach/razer-bwu13-macro.py
Razer BlackWidow keyboard - enable macro keys on Linux - updated for the Razer BlackWidow Chroma (RZ03-01220100-R3M1)
#!/usr/bin/python
# blackwidow_enable.py
#
# Enables the M1-5 and FN keys to send scancodes on the Razer BlackWidow
# and BlackWidow Ultimate keyboards.
#
# Requires the PyUSB library.
#
# By Michael Fincham <michael@finch.am> 2012-03-05
@Hakej
Hakej / HagotCommandExecutor.java
Created September 20, 2019 13:34
Current implementation of command executor
package me.hakej.hagot.hagot;
import me.hakej.hagot.hagot.commands.HagotCommand;
import me.hakej.hagot.hagot.commands.HealMe;
import me.hakej.hagot.hagot.commands.Test;
import me.hakej.hagot.hagot.commands.Toggle;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@Hakej
Hakej / gist:46babd32688ece27f92d51369f9be690
Created September 20, 2019 13:33
Current implementation of my command executor
package me.hakej.hagot.hagot;
import me.hakej.hagot.hagot.commands.HagotCommand;
import me.hakej.hagot.hagot.commands.HealMe;
import me.hakej.hagot.hagot.commands.Test;
import me.hakej.hagot.hagot.commands.Toggle;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@Hakej
Hakej / dice_roll.js
Last active January 16, 2017 18:22
"node --harmony ." doesn't work. The error I get is put in the comment of index.js
const commando = require('discord.js-commando');
class DiceRollCommand extends commando.Command {
contructor(client) {
super(client, {
name: 'roll',
group: 'random',
memberName: 'roll',
description: 'Rolls a dice'
});