Skip to content

Instantly share code, notes, and snippets.

Avatar

Max Ovsiankin maxov

View GitHub Profile
@maxov
maxov / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:e5d0baa9203be0b96faa
public interface Sender {
String getName()
void say(Message message);
}
public interface Reciever {
View gist:0b6cf61c2f6c1ba898db

Commands use-cases

So in thinking through the use-cases of commands w.r.t. Sponge I came uo with an algorithm for dealing with /command word conflicts.

I'm going to gloss over a few details that prepare the data structures in Sponge that hold information about the mapping of "command" to "plugin" off for a moment. I have another idea there... but for the problem scope limited to just de-conflicting:

Imagine each plugin is a node in a BST (binary search tree).

You can’t perform that action at this time.