ProductPicker.Module = function(opts) {
// private data
var self = {};
var defaults = {
target: $('#ppModule'),
tab: $('#ppTabModule'),
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
MacPro-31:~ marshall$ telnet localhost 9999 | |
Trying ::1... | |
Connected to localhost. | |
Connection closed by foreign host. | |
MacPro-31:~ marshall$ telnet localhost 9999 | |
Trying ::1... | |
Connected to localhost. | |
r | |
Available options: | |
ping |
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
HTTP/1.1 200 OK | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Length: 343 | |
{ | |
"player": "marshall007", | |
"stats": | |
{ | |
"on": "0", | |
"seen": "1310019287697", |
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
HTTP/1.1 200 OK | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Length: 712 | |
{ | |
{ | |
"player": "marshall007", | |
"stats": | |
{ | |
"on": "0", |
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
// local namespace | |
(function( $ ) { | |
// namespace constants | |
// application namespace | |
ProductPicker = function(opts) { | |
var self = {}; | |
var defaults = { | |
target: '#picker', | |
state: { |
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
06:50:02 [SEVERE] null | |
org.bukkit.command.CommandException: Unhandled exception executing command 'pac' in plugin PickACard v1.3 | |
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) | |
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129) | |
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352) | |
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737) | |
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701) | |
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694) | |
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) | |
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) |
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
// Given a simplified module pattern like so: | |
(function(APP, $, _) { | |
APP.MyWidget = function(opts) { | |
var self = {}; | |
var defaults = { | |
// an array of contexts and declarative event bindings | |
bindings : [ | |
{ |
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
public void load() { | |
Configuration deckConfig = new Configuration(new File(plugin.dir + "decks.yml")); | |
deckConfig.load(); | |
LinkedList<Card> savedDeck = null; | |
int s, r; | |
LinkedList<String> deck = (LinkedList) deckConfig.getStringList("decks." + deckName, null); | |
for (int i=0; i<deck.size(); i++) { | |
String[] temp = deck.get(i).split("-"); |
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
decks: | |
default: | |
draw: | |
- 0-0 | |
- 1-0 | |
- 2-0 | |
- 3-0 | |
- 4-0 | |
- 5-0 | |
- 6-0 |
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
easy: | |
2-5: | |
- Descriptions | |
- Descriptions | |
- Descriptions | |
- Descriptions | |
6-10: | |
- Descriptions | |
- Descriptions | |
- Descriptions |
OlderNewer