View main.js
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
/* | |
* Execute with node.js, and pass the input via stdin, like so: | |
* node main.js < input.txt | |
*/ | |
/** | |
* The entry point, reads a number n then n datasets from stdin | |
* and passes them into run() | |
*/ | |
function main() { |
View main.js
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
/* | |
* Execute with node.js, and pass the input via stdin, like so: | |
* node main.js < input.txt | |
*/ | |
var MESSAGE = 'HACKERCUP'; | |
/** | |
* The entry point, reads a number n then n datasets from stdin | |
* and passes them into run() |
View Auction.java
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
/* | |
* Put the input in a file called input.txt | |
* This program outputs to stdout | |
*/ | |
import org.encog.Encog; | |
import org.encog.engine.network.activation.ActivationBiPolar; | |
import org.encog.engine.network.activation.ActivationSigmoid; | |
import org.encog.mathutil.randomize.BasicRandomizer; | |
import org.encog.mathutil.randomize.ConsistentRandomizer; |
View input.txt
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
20 | |
274467416870917042 7270184 3005711 7759177 8197657 803826746 672879876 877174079 68314903 | |
1708396388 999999 12347 9699690 9748872 727477719 669281518 799407527 906645153 | |
739825879172045328 2683878 7208112 2912862 8898138 631358954 451401022 51028288 625542185 | |
1555193042 9999991 1 9999991 9999989 259999767 19999980 239999737 679999252 | |
982749972374309079 999999 12347 9699690 9748872 698378649 601383688 389954903 155982009 | |
967702028973969107 1 10000000 10000000 10000000 840000001 670000000 40000001 19999998 | |
1585081851 759324 967048 10000000 9999999 610000001 740000000 289999972 979999902 | |
918495108443110920 9999991 1 9999991 9999989 849999236 589999466 309999660 169999814 | |
54341206 9999909 9999991 9999949 9999991 689996482 829995765 749999326 389999649 |
View Code.js
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
Minecraft.BetaClient = function(args) { | |
if(Minecraft.ENVIRONMENT == 'node') { | |
if(typeof Minecraft.node.net == 'undefined') Minecraft.node.net = require('net'); | |
this.host = args.host; | |
this.port = args.port || 25565; | |
this.username = args.username || 'Player'; | |
this.status = 0; | |
if(typeof args.onLogin == 'function') this.onLogin = args.onLogin; |
View networking.json
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
>> 02000d004d00690073007400650072004d00450052004b004c00450059 | |
{ id: 2, | |
data: | |
[ { name: 'connectionHash', | |
type: 'string', | |
value: '248bc7153a0c9fe6' } ] } | |
>> 0100000017000d004d00690073007400650072004d00450052004b004c00450059000000000000000000000000000000000000 |
View client.js
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
(function(Minecraft) { | |
/** @constructor */ | |
Minecraft.Client = function(args) { | |
if(Minecraft.ENVIRONMENT == 'node') { | |
if(typeof Minecraft.node.net == 'undefined') Minecraft.node.net = require('net'); | |
if(typeof Minecraft.node.http == 'undefined') Minecraft.node.http = require('http'); | |
if(typeof Minecraft.node.https == 'undefined') Minecraft.node.https = require('https'); | |
if(typeof Minecraft.node.querystring == 'undefined') Minecraft.node.querystring = require('querystring'); | |
this.host = args.host; |
View Exception
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
07:22:00 [SEVERE] null | |
org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin iConomy v6.0.9b | |
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) | |
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) | |
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461) | |
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:818) | |
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:778) | |
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:761) | |
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33) | |
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) |
View gist:2395971
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
mappum@s15795101:/var/www/combat$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in app.js | |
warn: Local version appears to be old. | |
warn: Your package.json version will be incremented for you automatically. | |
warn: About to write /var/www/combat/package.json | |
warn: Using '*' as version for dependencies may eventually cause issues. |
View ui.js
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
function keyEvent(key) { | |
if(keyInterrupts) { | |
cpu.interrupt(); | |
} | |
}; | |
$(document).keydown(function(e) { | |
if(cpu.running && e.target.nodeName !== 'INPUT' && e.target.nodeName !== 'TEXTAREA') { | |
var key = keyMap[e.which] || e.which; | |
keysDown[key] = true; |
OlderNewer