This file contains hidden or 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
| #The Configuration For Amazon!# | |
| #This Config Will Contain Orders & More# | |
| Amazon: | |
| Players: | |
| danderion: | |
| item: DIAMOND_SWORD | |
| count: 1 | |
| everdras: | |
| item: DIAMOND | |
| count: 64 |
This file contains hidden or 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 class SomePlugin extends JavaPlugin { | |
| private Map<String, Order> orders; | |
| ... | |
| public void onEnable() { | |
| //you'll need to remember to load the config from disk | |
| //something like | |
| //this.orders = getConfig().getMap("Amazon.Players"); | |
| this.orders = new HashMap<String, Order>; |
This file contains hidden or 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
| Instead of this... | |
| thinger: blah blah at x: 1, y: 1, z: 1 | |
| do this: | |
| thinger: | |
| msg: blah blah | |
| x: 1 | |
| y: 1 |
This file contains hidden or 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
| #!/bin/bash | |
| ################################################## | |
| # for generating your root CA private key and cert | |
| ################################################## | |
| ca_name="jmhca" | |
| ca_key_bits="4096" | |
| ca_cert_expire_days="365" |
This file contains hidden or 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
| #!/bin/bash | |
| WOWPATH="/home/joshua/.wine/drive_c/Program Files (x86)/World of Warcraft" | |
| cd "$WOWPATH" | |
| if [ "$1" == "launcher" ]; then | |
| WINEDEBUG=-all wine "World of Warcraft Launcher.exe" | |
| elif [ "$1" == "kill" ]; then | |
| wineserver -k |
This file contains hidden or 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.util.List; | |
| import java.util.LinkedList; | |
| public class Permute { | |
| public static void main(String[] args) { | |
| for(String s : permute("abcd")) | |
| System.out.println(s); | |
| } | |
| public static List<String> permute(String s) { |
OlderNewer