Skip to content

Instantly share code, notes, and snippets.

View ThatsNoMoon's full-sized avatar

November ThatsNoMoon

View GitHub Profile
@ThatsNoMoon
ThatsNoMoon / does_not_compile.svg
Last active January 3, 2021 05:17
Improved does_not_compile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
class IncomingPacket(opcode: Int, type: PacketType, buffer: ByteBuf) : Packet(opcode, type, buffer) {
/**
* Reads a byte from the buffer and returns it
*/
fun readByte(): Byte = buffer.readByte()
/**
* Reads an integer from the buffer and returns it
*/
@ThatsNoMoon
ThatsNoMoon / gmp.lua
Created January 4, 2019 19:58
Pi benchmarks -- luajit vs C
local ffi = require 'ffi'
local jit = require 'jit'
local header = [[
// __GMP_SHORT_LIMB
// typedef unsigned int mp_limb_t;
// typedef int mp_limb_signed_t;
// _LONG_LONG_LIMB
// typedef unsigned long long int mp_limb_t;

Keybase proof

I hereby claim:

  • I am thatsnomoon on github.
  • I am thatsnomoon (https://keybase.io/thatsnomoon) on keybase.
  • I have a public key ASBD22vdPJTQ0VlY-uu2vRidg-zeA0ZHnudNO3lSim4-yQo

To claim this, I am signing this object:

macro_rules! oops {
($why:expr) => {
error_embed(&msg.channel_id, &format!("Something went wrong! Contact the developer with this error message if this problem continues.\n{}", $why));
};
}
const commando = require('discord.js-commando');
class GameCommand extends commando.Command {
constructor(client) {
super(client, {
name: 'game',
group: 'general',
memberName: 'game',
description: 'Sets bot\'s game status',
format: '``game [game]`'