This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <winsock2.h> | |
#include <windows.h> | |
#include <stdio.h> | |
#include "mongoose.h" | |
LASTINPUTINFO lii; | |
#define USER_EXPORTER_VERSION "0.0.1" | |
#define USER_EXPORTER_IDLE_TIME_SECONDS (8 * 60) | |
#define USER_EXPORTER_LISTEN_ADDR "http://0.0.0.0:9183" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const month = new Date().getMonth(); // 0-11 | |
const seasons = ['winter', 'spring', 'summer', 'autumn']; | |
const seasonIndex = Math.floor(((month + 1) % 12) / 3); | |
const seasonName = seasons[seasonIndex]; | |
console.log(seasonName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Pony.town chat filter | |
// @namespace mmote | |
// @match https://pony.town/* | |
// @grant none | |
// @version 1.0 | |
// @author MultiMote | |
// @description Filter chat messages by nicknames | |
// @run-at document-end | |
// @icon https://pony.town/favicon-194x194.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void copyTableSelectionToClipboard(QTableView *view) { | |
if (!view->model()) { | |
return; | |
} | |
int min_col = view->model()->columnCount() - 1; | |
int max_col = 0; | |
int min_row = view->model()->rowCount() - 1; | |
int max_row = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# table_comments.json | |
# | |
# { | |
# "customers": { | |
# "comment": "Customers table", | |
# "fields": { | |
# "City": "City field", | |
# "Country": "Country field" | |
# } | |
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import call | |
MAX_DISPLAY_IDLE_SECONDS = 60 * 5 | |
class DisplayPower(object): | |
def __init__(self): | |
self.display_idle_time = 0 | |
self.display_on = False | |
self.on() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MultiMote. 2017 | |
// just kidding, really | |
// this is for UDP sockets testing, not a real connector | |
// I will rewrite it for QT | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <conio.h> | |
#include <string.h> | |
#include <pthread.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.multimote.microz.handlers.packet; | |
import com.multimote.microz.Core; | |
import cpw.mods.fml.common.network.simpleimpl.IMessage; | |
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; | |
import cpw.mods.fml.common.network.simpleimpl.MessageContext; | |
import io.netty.buffer.ByteBuf; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.world.World; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.multimote.microz.utils; | |
import com.multimote.microz.Core; | |
import com.multimote.microz.data.GlobalData; | |
import com.multimote.microz.entity.CorpseEntity; | |
import com.multimote.microz.entity.living.FastZombie; | |
import com.multimote.microz.entity.living.npc.NpcBase; | |
import com.multimote.microz.handlers.packet.DescrWorldDataPacket; | |
import net.minecraft.command.CommandBase; | |
import net.minecraft.command.CommandException; |
NewerOlder