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.URLEncoder; | |
import org.apache.commons.lang.StringEscapeUtils; | |
public class Sanitize { | |
/* | |
* @param input the String to be sanitized for use in HTML | |
* @return the sanitized String | |
*/ | |
public static String html(Object input) { |
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
from random import choice as random | |
ROCK = 1 | |
PAPER = 2 | |
SCISSORS = 3 | |
out_of = 3 | |
best = out_of -1 | |
MOVES = { |
OlderNewer