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
import javax.imageio.ImageIO; | |
import java.awt.*; | |
import java.awt.image.*; | |
import java.io.File; | |
import java.util.Vector; | |
import static com.google.common.base.Preconditions.checkState; | |
public class Q73228364 { |
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
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; | |
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder; | |
import com.amazonaws.services.dynamodbv2.model.AttributeValue; | |
import com.amazonaws.services.dynamodbv2.model.DeleteItemRequest; | |
import com.amazonaws.services.dynamodbv2.model.PutItemRequest; | |
import com.amazonaws.services.dynamodbv2.model.ScanResult; | |
import com.google.common.collect.ImmutableMap; | |
import com.google.common.collect.ImmutableSet; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; |
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
import org.apache.commons.math3.distribution.BinomialDistribution; | |
/** | |
* https://www.maths.manchester.ac.uk/mathsbombe/problem.php?index=4 | |
*/ | |
public class ChipsPuzzle { | |
public static void main(String[] args) { | |
// expected time to ok after a shuffle |
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
#IfWinExist ahk_class iTunes | |
Media_Play_Pause::ControlSend, , ^p, Windows Media Player | |
#IfWinExist ahk_class iTunes | |
Media_Next::ControlSend, , ^f, Windows Media Player | |
#IfWinExist ahk_class iTunes | |
Media_Prev::ControlSend, , ^b, Windows Media Player |
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
package my.app; | |
import org.apache.logging.log4j.Level; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.core.LogEvent; | |
import org.apache.logging.log4j.core.LoggerContext; | |
import org.apache.logging.log4j.core.appender.AbstractAppender; | |
import org.apache.logging.log4j.core.config.AppenderRef; | |
import org.apache.logging.log4j.core.config.Configuration; | |
import org.apache.logging.log4j.core.config.LoggerConfig; |
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
object MainClass { | |
def main(args: Array[String]): Unit = { | |
println("Output from main class") | |
} | |
} |
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
import java.io.{FileInputStream, IOException, InputStream} | |
import java.nio.charset.StandardCharsets | |
import java.nio.file.{Files, Paths} | |
import scala.io.Source | |
object q5221524 { | |
def main(args: Array[String]): Unit = { | |
// Setup |