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.ArrayList; | |
| import java.util.List; | |
| public class PrimeSearch { | |
| public static List<Integer> primeList; | |
| public static int maxSearchIdx = 0; | |
| public static void main(String[] args){ | |
| int number = 2019; | |
| int numberOfPrime = 6*number/(int)(Math.round(Math.log(number)*5)); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="shortcut icon" href="favicon.ico"> | |
| <script type="text/javascript" src="./InverseMatrix.js"></script> | |
| <style> | |
| body{ margin: 2em; font-size: 3em;} | |
| input{ font-size: 1em; text-align: center; width: 3em;} |
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
| \documentclass[12pt,a4j]{jarticle} | |
| \usepackage{graphicx} | |
| \usepackage{geometry} | |
| \usepackage{plext} | |
| \geometry{top=30truemm,bottom=30truemm,left=25truemm,right=25truemm} | |
| \usepackage{plext} | |
| \newcommand*{\setItemizeInterval}[0]{ | |
| \setlength{\parskip}{0cm} | |
| \setlength{\itemsep}{0cm} | |
| } |
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 PictureMaker { | |
| public static void main(String[] args){ | |
| Canvas canvas = new Canvas(10,10,255); //この時10×10pxの画像を出力します | |
| RGB rgb = new RGB(0,0,0,255); | |
| canvas.printHeader(); | |
| for (int y=0; y<canvas.getHeight(); y++) { | |
| System.out.println(); |
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 MakePicture { | |
| public static void main(String[] args){ | |
| final int WIDTH = 255; | |
| final int HEIGHT = 255; | |
| RGB rgb = new RGB(); | |
| System.out.println("P3 255 "+WIDTH+" "+HEIGHT); | |
| printRedBlueGradation(rgb,WIDTH,HEIGHT); | |
| } | |
| private static void printRedBlueGradation(RGB rgb, int width, int height){ |
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 net.trpfrog; | |
| import java.util.Random; | |
| public class Amidakuzi { | |
| private int people = 0; | |
| private int length = 0; | |
| private final Random RAND = new Random(System.currentTimeMillis()); | |
| private StringBuilder sb = new StringBuilder(); |
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 Twitter { | |
| import twitter4j.Twitter; | |
| import twitter4j.TwitterFactory; | |
| import twitter4j.TwitterStream; | |
| import twitter4j.TwitterStreamFactory; | |
| import twitter4j.conf.ConfigurationBuilder; | |
| protected TwitterStream stream; | |
| protected final ConfigurationBuilder getBuilder(){ //ConfigurationBuilderの設定 |
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 net.trpfrog.frogrobo.mini_tools; | |
| import java.util.ArrayList; | |
| import java.util.function.IntBinaryOperator; | |
| import net.trpfrog.frogrobo.streaming.MentionListenerPlus; | |
| import twitter4j.Status; | |
| public class TransposeListener extends MentionListenerPlus { |
NewerOlder