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
"use strict"; | |
const net = require('net'); | |
const packets = require('./packets.json'); | |
var server; | |
class PacketBatch { | |
constructor(buffer) { | |
this.buffers = []; |
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
var net = require('net'); | |
var IPConnections = []; | |
var ConnectionStates = []; | |
var handshakeStates = []; | |
var userNames = []; | |
var playerCoords = [[], [], []]; | |
const server = net.createServer( (socket) => { |
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 fractions import Fraction, gcd | |
# Helpers | |
def transposeMatrix(m): | |
return map(list,zip(*m)) | |
def getMatrixMinor(m,i,j): | |
return [row[:j] + row[j+1:] for row in (m[:i]+m[i+1:])] |