Skip to content

Instantly share code, notes, and snippets.

Ravi Kharatmal Ravikharatmal

Block or report user

Report or block Ravikharatmal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PDFWithTextAndGraphics.java
package com.itsallbinary.utility.pdfgraphics;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
View JB.java
package com.itsallbinary.audio;
import static com.itsallbinary.audio.MusicNote.C;
import static com.itsallbinary.audio.MusicNote.D;
import static com.itsallbinary.audio.MusicNote.E;
import static com.itsallbinary.audio.MusicNote.F;
import static com.itsallbinary.audio.MusicNote.G;
import static com.itsallbinary.audio.MusicNote.PAUSE;
import javax.sound.sampled.AudioFormat;
@Ravikharatmal
Ravikharatmal / MyTestClass.kt
Created Dec 16, 2018
Java vs. Groovy, Scala, Kotlin - Syntax Comparison of JVM Languages
View MyTestClass.kt
Syntax:
<public/private/protected/internal> class <class-name> (constructor-arg-name:arg-type,..){
<public/private/protected/internal> fun <func-name> (<arg-name>:<arg-type>,...) : <return-type> = {
<method-body>
return <return-value>
}
}
@Ravikharatmal
Ravikharatmal / MyTestClass.scala
Created Dec 16, 2018
Java vs. Groovy, Scala, Kotlin - Syntax Comparison of JVM Languages
View MyTestClass.scala
Syntax:
<class/object> <class-name> (constructor-arg-name:arg-type,..){
<private/protected/no-modifier> def <func-name> (<arg-name>:<arg-type>,...) : <return-type> = {
<method-body>
return <return-value>
}
}
@Ravikharatmal
Ravikharatmal / MyTestClass.groovy
Last active Dec 16, 2018
Java vs. Groovy, Scala, Kotlin - Syntax Comparison of JVM Languages
View MyTestClass.groovy
Syntax: Same as Java
Example:
class MyTestClass{
String name;
public MyTestClass(String name){
this.name = name;
}
@Ravikharatmal
Ravikharatmal / MyTestClass.java
Last active Dec 16, 2018
Java vs. Groovy, Scala, Kotlin - Syntax Comparison of JVM Languages
View MyTestClass.java
class MyTestClass{
String name;
public MyTestClass(String name){
this.name = name;
}
public String myMethod(String a, int b){
String result = name + a + b;
return result;
View MinimalPDF.java
package com.itsallbinary.utility;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Create PDF file without any library from scratch.
You can’t perform that action at this time.