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
/** | |
* Standard 2-dimensional floating-point vector implementation. | |
*/ | |
public final class Vec2F { | |
public float x; | |
public float y; | |
public Vec2F(float x, float y) { | |
this.x = x; | |
this.y = y; |
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 std.stdio; | |
void main() { | |
for (int i = 0; i <= 100; i++) { | |
if (i % 3 == 0) write("Fizz"); | |
if (i % 5 == 0) write("Buzz"); | |
if (i % 3 != 0 && i % 5 != 0) write(i); | |
writeln(); | |
} | |
} |
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.io.IOException; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.nio.file.Path; | |
class ImageScraper { | |
public static void main(String[] args) throws IOException, InterruptedException { | |
if (args.length < 1 || args[0].isBlank()) throw new IllegalArgumentException("Missing required URL."); |
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.company.util; | |
import javax.persistence.criteria.CriteriaBuilder; | |
import javax.persistence.criteria.Path; | |
import javax.persistence.criteria.Predicate; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* This builder can be used to build either a conjunction or disjunction |