Skip to content

Instantly share code, notes, and snippets.

View ShmuelMofrad's full-sized avatar
💭
I may be slow to respond.

Samuel Mofrad ShmuelMofrad

💭
I may be slow to respond.
View GitHub Profile
@ShmuelMofrad
ShmuelMofrad / For-Loop.md
Created November 4, 2023 21:30
Here is how you can write a for loop in Java, JavaScript, Rust, and Go

Java

// A for loop that prints the numbers from 1 to 10
for (int i = 1; i <= 10; i++) {
  System.out.println(i);
}

JavaScript

@ShmuelMofrad
ShmuelMofrad / STS-README.md
Created July 31, 2022 19:03
Spring Boot in Visual Studio Code
Start-Process PowerShell -WindowStyle Maximized
@ShmuelMofrad
ShmuelMofrad / GetSystemProperties.java
Last active January 28, 2018 15:16
Get System Properties
private void getSystemProperties() {
System.getProperties().list(System.out);
}
@ShmuelMofrad
ShmuelMofrad / IllegalStateExceptionInWhile.java
Last active December 3, 2017 16:40
IllegalStateException
public class IllegalStateExceptionInWhile {
public static void main(String[] args) {
seeMore();
run();
iamNotWorking();
}
static void run() {
int counter = 0;
@ShmuelMofrad
ShmuelMofrad / WhileLoopsTrueForever.java
Created December 3, 2017 16:37
While(true) loops is not bad forever.
public class WhileLoopsTrueForever {
public static void main(String[] args) {
firstPhase();
sum(5, 2017);
secondPhase();
iamOK();
}
@ShmuelMofrad
ShmuelMofrad / maven-single-with-dependencies.md
Last active November 29, 2017 19:52
Maven - single project with dependencies.

Maven single project with dependencies.

build single project with dependencies

add this in your pom.xml

	<build>
 src
@ShmuelMofrad
ShmuelMofrad / maven-single-without-dependencies.md
Created November 29, 2017 19:40
Maven - single project without dependencies.

Maven single project without dependencies.

build single project without dependencies

add this in your pom.xml

<build>
    <plugins>
@ShmuelMofrad
ShmuelMofrad / Maven-Starter-Kit.md
Created November 29, 2017 19:35
Maven - Make your project.
@ShmuelMofrad
ShmuelMofrad / javap.md
Created November 29, 2017 19:20
Javap - Disassembles class files.

Javap - Disassembles class files.

path: [jdk-path] / bin

$ javap -help
 
Usage: javap <options> <classes>