I hereby claim:
- I am jottinger on github.
- I am josephbottinger (https://keybase.io/josephbottinger) on keybase.
- I have a public key whose fingerprint is 1B62 46D6 AB3D F5C9 2048 E129 DFFF 91EA FFF2 A92A
To claim this, I am signing this object:
package p1; | |
import org.slf4j.LoggerFactory; | |
public class Main { | |
public static void main(String[] args) { | |
var logger= LoggerFactory.getLogger(Main.class); | |
System.out.println(logger.getClass()); | |
} | |
} |
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This generated file contains a sample Java application project to get you started. | |
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle | |
* User Manual available at https://docs.gradle.org/7.1.1/userguide/building_java_projects.html | |
*/ | |
plugins { | |
// Apply the application plugin to add support for building a CLI application in Java. |
package snf; | |
import com.google.gson.Gson; | |
import org.junit.Test; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import java.util.UUID | |
import scala.collection.mutable.{Map => MutableMap} | |
case class Terms(id:UUID, name:String) { | |
val words=MutableMap[UUID, Word]() | |
} | |
case class Word(id:UUID, word:String, definition:String) |
package chapter2 | |
import scala.math._ | |
object Recommendations { | |
def sim_distance(preferences: Map[String, Map[String, Double]], | |
person1: String, person2: String)= { | |
val p1=preferences(person1) | |
val p2=preferences(person2) | |
val si: Set[String] = p1.keySet.intersect(p2.keySet) |
package org.javachannel; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.stream.IntStream; | |
public class LemonSparrowExample { | |
public static void main(String[] args) { | |
List<Integer> ids = new ArrayList<>(); | |
IntStream.range(0, 2300).forEach(ids::add); |
Joseph@netzach ~/work/java/docker-maven-plugin | |
$ mvn install; mvn com.autumncode.docker:docker-maven-plugin:1.0-SNAPSHOT:docker -Dimage=hello-world | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building docker-maven-plugin Maven Plugin 1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-plugin-plugin:3.2:helpmojo (help-goal) @ docker-maven-plugin --- | |
[INFO] Using 'UTF-8' encoding to read mojo metadata. |
public class Iterate2 { | |
public static void main(String[] args) { | |
new Iterate2().run(); | |
} | |
public void run() { | |
long start = System.currentTimeMillis(); | |
InputStream in = this.getClass().getResourceAsStream("/numbers.txt"); | |
BufferedInputStream bis = new BufferedInputStream(in); | |
Scanner scanner = new Scanner(bis); |