Pseudo Java code:
public static void main(String[] args) {
System.out.print("Enter two numbers: ");
int x = read();
int y = read();
print(x / y);
}
package net.md_5.bungee.netty; | |
import io.netty.buffer.ByteBuf; | |
import io.netty.channel.ChannelHandler; | |
import io.netty.channel.ChannelHandlerContext; | |
import io.netty.handler.codec.MessageToByteEncoder; | |
@ChannelHandler.Sharable | |
public class ByteArrayEncoder extends MessageToByteEncoder<byte[]> | |
{ |
/* | |
* Copyright 2011-2013 Tyler Blair. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, are | |
* permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, this list of | |
* conditions and the following disclaimer. | |
* | |
* 2. Redistributions in binary form must reproduce the above copyright notice, this list |
net/minecraft/src/TexturePackDownloadSuccess/<init> [Lnet/minecraft/src/TexturePackDownloadSuccess;, Lnet/minecraft/src/TexturePackList;] | |
net/minecraft/src/TexturePackDownloadSuccess/onSuccess [Lnet/minecraft/src/TexturePackDownloadSuccess;, Ljava/io/File;] | |
net/minecraft/src/Packet10Flying/<init> [Lnet/minecraft/src/Packet10Flying;] | |
net/minecraft/src/Packet10Flying/<init> [Lnet/minecraft/src/Packet10Flying;, Z] | |
net/minecraft/src/Packet10Flying/processPacket [Lnet/minecraft/src/Packet10Flying;, Lnet/minecraft/src/NetHandler;] | |
net/minecraft/src/Packet10Flying/readPacketData [Lnet/minecraft/src/Packet10Flying;, Ljava/io/DataInputStream;] | |
net/minecraft/src/Packet10Flying/writePacketData [Lnet/minecraft/src/Packet10Flying;, Ljava/io/DataOutputStream;] | |
net/minecraft/src/Packet10Flying/getPacketSize [Lnet/minecraft/src/Packet10Flying;] | |
net/minecraft/src/Packet10Flying/isRealPacket [Lnet/minecraft/src/Packet10Flying;] | |
net/minecraft/src/Packet10Flying/containsSameEntityIDAs [Lnet/minecraft/src/Packet10Flying;, Lnet/mi |
{ | |
"songLength": 3292, | |
"songHeight": 7, | |
"songName": "Bohemian Rhapsody", | |
"songAuthor": "Lucky Cobra", | |
"originalSongAuthor": "Queen", | |
"songDescription": "\"Bohemian Rhapsody\" by Queen recreated\rin note blocks by Lucky Cobra.", | |
"tempo": 1000, | |
"autoSaving": false, | |
"autoSaveDuration": 10, |
Pseudo Java code:
public static void main(String[] args) {
System.out.print("Enter two numbers: ");
int x = read();
int y = read();
print(x / y);
}
import io.netty.channel.Channel; | |
import io.netty.channel.ChannelHandlerContext; | |
import io.netty.channel.ChannelOption; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.InetAddress; | |
import java.net.Socket; | |
import java.net.SocketAddress; |
package net.md_5.bungee; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.math.BigInteger; | |
import java.net.URL; | |
import java.net.URLEncoder; | |
import java.security.InvalidKeyException; | |
import java.security.Key; |
public class App | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
for (byte art = 0; art < 24; art++) | |
{ | |
for (byte data = 0; data < 4; data++) | |
{ | |
byte packed = pack(art, data); |
/** | |
* Copyright (c) 2012, md_5. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* Redistributions of source code must retain the above copyright notice, this | |
* list of conditions and the following disclaimer. | |
* | |
* Redistributions in binary form must reproduce the above copyright notice, |
<roxlu> hey guys, it looks like it's not possible to add comments to gists anymore? | |
<roxlu> It didn't work a couple of days before but I thought it was just me doing something wierd... but today I get the same thing |