This file has been truncated, but you can view the full file.
This file contains hidden or 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
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@5e8ba466) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@2aa8364a) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@5f527776) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@2002e93e) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@3705538) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@1cbddc7c) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@48844147) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@78ad75ce) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@78b17287) | |
| Created new DefaultNode(com.acelta.net.Session$flushTask$1@4150e8a4) |
This file contains hidden or 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
| val buf = ByteBufPacketeer(ctx.alloc().directBuffer()) | |
| buf + 14.byte + 0.byte + 16.byte + 0.byte + 255.byte + 317.short + true | |
| for (i in 1..29) buf + 0.short | |
| buf + "acelta$it" + "password" | |
| ctx.writeAndFlush(buf.data, ctx.voidPromise()) |
This file contains hidden or 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
| (defproject void "0.1.0-SNAPSHOT" | |
| :dependencies [[org.clojure/clojure "1.8.0"] [io.netty/netty-all "4.1.0.CR7"]]) |
This file contains hidden or 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
| import io.netty.bootstrap.Bootstrap; | |
| import io.netty.buffer.ByteBuf; | |
| import io.netty.channel.ChannelHandlerContext; | |
| import io.netty.channel.ChannelInboundHandlerAdapter; | |
| import io.netty.channel.ChannelInitializer; | |
| import io.netty.channel.ChannelOption; | |
| import io.netty.channel.nio.NioEventLoopGroup; | |
| import io.netty.channel.socket.SocketChannel; | |
| import io.netty.channel.socket.nio.NioSocketChannel; |
This file contains hidden or 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
| val group = NioEventLoopGroup() | |
| val initializer = object : ChannelInitializer<SocketChannel>() { | |
| override fun initChannel(ch: SocketChannel) { | |
| ch.pipeline().addFirst(object : ChannelInboundHandlerAdapter() { | |
| override fun channelRegistered(ctx: ChannelHandlerContext) { | |
| ctx.writeAndFlush(buf) | |
| println("Sent.") | |
| } | |
| }) | |
| } |
This file contains hidden or 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
| val version = 0xFF - byte.usin | |
| val release = short.usin | |
| val highDetail = boolean | |
| for (i in 0..9) int // CRCs | |
| val blockLength = byte.usin | |
| val blockID = byte.usin | |
| for (i in 0..4) int // ISAAC keys |
This file contains hidden or 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
| object StringCache { | |
| private val map = HashMap<Int, String>(1024) | |
| operator fun get(bytes: ByteArray, hash: Int = bytes.hashCode()): String { | |
| if (map.containsKey(hash)) return map[hash]!! | |
| val string = String(bytes).intern() | |
| map[hash] = string | |
| return string | |
| } |
This file contains hidden or 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
| Game 1 | |
| JLRE: trump 2016 | |
| JLRE: trump wants every game to be a win | |
| JLRE: darius go top | |
| JLRE: idc | |
| JLRE: with donald trump ganks won't be possible since those are illegal immigration to other lanes | |
| JLRE: ekko you're black, you're getting deported | |
| JLRE: ur mom's an african lad | |
| JLRE: ggwp |
This file contains hidden or 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
| import java.util.* | |
| class JireMap<K, V>(val capacity: Int = 16) : Iterable<JireMap.Entry<K, V>> { | |
| data class Entry<K, V>(val key: K, val value: V, var next: Entry<K, V>? = null) | |
| private var table = arrayOfNulls<Entry<K, V>>(capacity) | |
| fun K.hash() = Math.abs(hashCode()) % table.size |
This file contains hidden or 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
| @file:JvmName("Stringa") | |
| package org.jire.stringa | |
| import java.util.* | |
| private val intToString = HashMap<Int, String>(8192) | |
| private val arrayToString = HashMap<Int, Int>(8192) | |
| fun String.stringa() { |