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.utils; | |
/** | |
* Useful classes for manipulating {@link java.lang.String String}s. | |
* @author Colin Haber | |
* @version 0.0.0 | |
*/ | |
public class Strings { | |
/** | |
* The default {@code char} used for padding | |
* {@link java.lang.String String}s. |
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.utils; | |
import java.util.Iterator; | |
/** | |
* Allows for Python-like {@code foreach} loop iteration with | |
* {@link java.lang.Integer Integer}s. Use as follows. | |
* <pre> | |
* for ({@link java.lang.Integer Integer} l : new Range()); | |
* </pre> | |
* @author Colin Haber | |
* @version 0.1.0 |
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; | |
import java.util.logging.*; | |
public class Test { | |
public static void main(String[] args) { | |
new Test(); | |
} | |
private Logger logger = Logger.getLogger(this.getClass().getCanonicalName()); | |
private Test() { | |
System.out.println("System.out functional"); | |
System.err.println("System.err functional"); |
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; | |
import java.util.logging.*; | |
public class Test { | |
public static void main(String[] args) { | |
new Test(); | |
} | |
private Logger logger = Logger.getLogger(this.getClass().getCanonicalName()); | |
{ | |
System.err.println("errcheck"); | |
this.logger.addHandler(new ConsoleHandler()); |
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
/** | |
* This file is part of CHAT - The stupid messaging protocol. | |
* Copyright (C) 2012 Jon Stevens and Colin Haber | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
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
/** | |
* CHAT - CHAT Has Acronym Troubles - The stupid messaging protocol. | |
* Copyright (C) 2012 Jon Stevens and Colin Haber | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
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.networking; | |
import java.io.*; | |
import java.net.*; | |
import java.util.Arrays; | |
public abstract class Client { | |
private final Socket socket; | |
private BufferedReader netReader; | |
private BufferedWriter netWriter; | |
public Client() { | |
socket = new Socket(); |
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.net.*; | |
import java.io.*; | |
public class Client { | |
public static void main(String[] args) { | |
new Client(); | |
} | |
private final InetAddress host; | |
private final Socket port; | |
private final PrintStream out; | |
private final BufferedReader in; |
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
.background-color-shift (@color, @amount: 10%) when (lightness(@color) > 50%) { | |
background-color: darken(@color, @amount); | |
} | |
.background-color-shift (@color, @amount: 10%) when (lightness(@color) <= 50%) { | |
background-color: lighten(@color, @amount); | |
} | |
.text-color-shift (@color, @amount: 10%) when (lightness(@color) > 50%) { | |
color: darken(@color, @amount); | |
} | |
.text-color-shift (@color, @amount: 10%) when (lightness(@color) <= 50%) { |
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
@charset "UTF-8"; | |
@import url(http://fonts.googleapis.com/css?family=Lato:400); | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
background-color: black; | |
} | |
div.tile { |