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
// Tutorial Bot #9: The hacker's RPG ! | |
import javax.script._ | |
class ControlFunctionFactory { | |
val manager = new ScriptEngineManager | |
val engine = manager.getEngineByExtension("js") | |
engine.eval(""" | |
importPackage(java.util); // This is UGLYYYYYYY | |
// Rhino imports ALL CLASSES IN A PACKAGE ! | |
// this is equivalent to import java.util.*/java.util._ |
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
<?php | |
/* | |
* Database MySQLDump Control File | |
* Original author : | |
* Copyright (c) 2009 by James Elliott | |
* James.d.Elliott@gmail.com | |
* GNU General Public License v3 http://www.gnu.org/licenses/gpl.html | |
*/ | |
require_once('./mysqldump.class.php'); //Location Of Class File. |
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 mc = require('../'); | |
var readline = require('readline'); | |
var rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
rl.setPrompt(">"); | |
var client = mc.createClient({ |
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 mc = require('../'); | |
var client = mc.ping({}, function (err,results) { | |
if (err !== null) { | |
console.log(err); | |
} else { | |
console.log(results); | |
} | |
}); |
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
import java.io.ByteArrayOutputStream; | |
import java.io.DataOutputStream; | |
import org.bukkit.Bukkit; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.bukkit.scheduler.BukkitRunnable; | |
import org.bukkit.scheduler.BukkitTask; | |
public class BukkitPlug extends JavaPlugin { | |
BukkitTask task; |
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 net.craftminecraft.bungee.bungeeyaml; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.Future; | |
import java.util.logging.Level; | |
import com.ning.http.client.AsyncCompletionHandler; |
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
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.Writer; | |
import org.bukkit.configuration.InvalidConfigurationException; | |
import org.bukkit.configuration.file.YamlConfiguration; | |
/* | |
* Bungee's SuperEasyConfig - Config |
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
# A tiny DSL implementation for a minimal subset of BASIC in Scala | |
# Via http://www.nabble.com/-scala--ease-of-making-DSLs-in-Scala---nobody-cares-to22450638.html | |
class BasicClass { | |
abstract sealed class BasicLine | |
case class PrintLine(num: Int, s: String) extends BasicLine | |
case class GotoLine(num: Int, to: Int) extends BasicLine | |
val lines = new scala.collection.mutable.HashMap[Int, BasicLine] | |
case class linebuilder(num: Int) { | |
def GOTO(to: Int) = lines(num) = GotoLine(num, to) |
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
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
<bukkit.version>1.6.4-R2.1-SNAPSHOT</bukkit.version> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use DBI; | |
############################## | |
# EDIT THESE CONFIG SETTINGS # | |
############################## |
OlderNewer