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 function setRed($red) { | |
| if ($red > 255) { | |
| $red = 255; | |
| } else if ($red < 0) { | |
| $red = 0; | |
| } | |
| $this->red = $red; | |
| } |
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
| package com.n1nja.fileio; | |
| import java.io.*; | |
| public class FileLoader { | |
| public static void main(String[] args) { | |
| new FileLoader(args); | |
| } | |
| //The file to read | |
| private final File f = new File("rpsls.rps"); | |
| private BufferedReader in; | |
| private FileLoader(String...r) { |
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
| n1nja@Colin-Server:~/mc$ java -version | |
| java version "1.6.0_26" | |
| Java(TM) SE Runtime Environment (build 1.6.0_26-b03) | |
| Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) | |
| n1nja@Colin-Server:~/mc$ bash start.sh | |
| Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/server/MinecraftServer | |
| Caused by: java.lang.ClassNotFoundException: net.minecraft.server.MinecraftServer | |
| at java.net.URLClassLoader$1.run(URLClassLoader.java:202) | |
| at java.security.AccessController.doPrivileged(Native Method) | |
| at java.net.URLClassLoader.findClass(URLClassLoader.java:190) |
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
| def getTitle(self, filename="manifest.xml"): | |
| doc = minidom.parse(filename) | |
| plugin = doc.childNodes[0] | |
| for node in plugin.childNodes: | |
| if node.nodeType == Node.ELEMENT_NODE and node.nodeName == "name": | |
| for child in node.childNodes: | |
| if child.nodeType == Node.TEXT_NODE: | |
| return child.data |
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
| .VP5otc-Sqv85e{font-size:70%;font-family:arial,sans-serif;float:left;margin:0 8px 0 0;cursor:pointer}.VP5otc-pzeoBf{padding:6px 0 3px 3px;background:white;border-bottom:1px solid rgba(0,0,0,.1)}.VP5otc-YU0EGb-pzeoBf{border-bottom:1px solid rgba(0,0,0,.1)}.VP5otc-U4m8q{padding:3px 0 6px 3px;background:white;border-top:1px solid rgba(0,0,0,.1)}.VP5otc-d2fWKd{height:6px;width:7px;background:url(?ui=2&view=dim&iv=1czp6kdfi7cl7&it=vi) no-repeat -36px 50%;vertical-align:middle;font-size:0;margin-left:3px}.VP5otc-tOAp0c,.VP5otc-ynQFL{float:left;font:bold 80% arial,sans-serif;margin-right:4px;padding:2px 3px 0 3px}.VP5otc-tOAp0c{text-decoration:underline;cursor:pointer;color:#222}.VP5otc-ynQFL{color:#222}.VP5otc-MdoD9{float:none!important;text-decoration:underline;margin-left:.5ex;padding:3px .5ex 0 0;cursor:pointer;font:normal 80% arial,sans-serif;color:#222}.OeDJSe-eSumjb{bottom:1px;right:16px;z-index:4;background-color:#fff1a8;border:1px solid #ccc;font-size:80%;color:#222;padding:10px;position:fixed}.OeDJSe-tOAp0 |
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
| eJztWcly6zgS/KH+BRy0WLbeWLbaVD9Hzw0SSyRCIMEBQcucr58sANxkyuHo81xsMrOwFWqlpHZ7ebp | |
| sT6YUL+Rysn/IWejN1CT4D7+8yNoJ/uMZSndNnVtjCoHnZeOcKZlYksqopwZ8JU+uqcVeS+Xf11STdU | |
| lum6N41eqDggBTB0ukSX5QLZbKFDTFPCSW1lyo1Cbuba9KeiFKdTeGgRtiduCLsYXUS2kv4t2YdI2Hb | |
| pgH+aEDl8qeco/6p7VxfruJrLQqM8FiGbZZjkAeLrq9RMwPDlN4FLvDprX0b+85SScSVVSa+vfMyrp+ | |
| LWlltGmseFZZ7nrNTCQS12oSO0qnzOFq4lje5MxQCEyGLlW2b4rqokqxwpGqaA5hq7I4GsPvf9X0rnT | |
| qZxB/k9dGDzx61K/lNzwhn5Vu9zIV77lyNGGinXiTmBCvH2S1bDfaXMlOBwYMZigOjVZVPcX/Jo3/Yo | |
| l/UwL3coFCVN16g1TWCf7jzU1pjem619FZ+tdZc/LMM5WZy8WzKTN/waW5rq06u/6SGZkRuoHgKuVlq | |
| c3pIlYa06pTr8dVTrWrxTusidIBtfLsDvKIa4yXsTTmUuek2ZUi9CZTZbqXw8shWFNyaaJ22AmMseIJ | |
| ztb2Ux+srDzsEc8x/CzTlCIYJle6vnnFHmoHIZhUj63J0clhugTO59dNVFZWEOx3zpYWTa+f70mW6XC | |
| 4g4EH0Wi5pZHDeFnDGQy8742kVrVTJ4Y3xmbE91C7zqs9dDCV2JbpbypdsIW6orKWeYhXqkyb2lkldY |
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
| <td valign="top" bgcolor="White" align="right"> | |
| <a href="http://www.google.com/search?q=$query&tbm=shop&hl=en"> | |
| <div style="background-color: #45a5ff; color: #ffffff; float: left; padding: 6px; font-weight:bold;">Compare Prices</div> | |
| </a> | |
| <!-- This should be placed directly before the <nobr> tag that wraps the price text in the variants table on product pages. --> |
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
| tpInput.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4), BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(consoleForeground), BorderFactory.createEmptyBorder(4, 4, 4, 4)))); |
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
| private void initPrinter() { | |
| new Thread(new Runnable() { public void run() {while (true) { | |
| Message read = messageQueue.read(); | |
| String text = read.getText(); | |
| //process and print | |
| } catch (Exception e) { | |
| e.printStackTrace(); | |
| } | |
| }}}).start(); | |
| } |
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
| System.out.println(text + System.getProperty("line.separator") + Thread.currentThread().getStackTrace()[stackDepth].getFileName() + ":" + Thread.currentThread().getStackTrace()[stackDepth].getLineNumber() + System.getProperty("line.separator") + Thread.currentThread().getStackTrace()[stackDepth].getClassName() + "." + Thread.currentThread().getStackTrace()[stackDepth].getMethodName()); |