Skip to content

Instantly share code, notes, and snippets.

@FreeFly19
FreeFly19 / default
Last active March 31, 2018 23:16 — forked from Nata01/default
nginx config for backend API and frontend SPA
# File path: /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /home/ubuntu/ProjectBravo/smartschool/dist;
location /api {
proxy_redirect off;
proxy_pass http://localhost:8080;
package com.company;
public class Main {
public static void main(String args[]) {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
if (i < j) {
System.out.print(" # ");
} else {
System.out.print(i*j + " ");
package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Введіть розмірність масиву m*n:");
int m = scan.nextInt();
int n = scan.nextInt();
package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int sum = 0;
for(int i=0;i<=n;i++){
package com.company;
public class Main {
public static void main(String args[]){
int i, j, a=0;
for(i = 1; i < 10; i++){
for(j = 1; j < 10; j++) {
a = i*j;
@FreeFly19
FreeFly19 / Ex6.java
Last active October 23, 2016 22:19 — forked from greensma/Ex6.java
Home work #2
public class Ex6 {
public static void main(String... args){
for(int i = 1; i < 10; i++){
for(int k = 1; k < 10; k++){
System.out.print(k * i + "\t");
}
System.out.println();
}
}
}
@FreeFly19
FreeFly19 / Ex5.java
Last active October 23, 2016 22:18 — forked from greensma/Ex5.java
Home work #2 Смаглюк Иван
public class Ex5 {
public static void main(String[] args) {
int n = 15;
int m = 3;
for (int i = 1; i <= n; i++) {
if (i % m == 0) {
System.out.print(i + " ");
}
}
@FreeFly19
FreeFly19 / Ex2
Last active October 23, 2016 22:16 — forked from greensma/Ex2.java
Home work #2 Иван Смаглюк
class Ex2 {
public static void main(String[] args) {
final int COUNT = 7;
String s = "I will adopt best practices";
for (int i = 0; i < COUNT; i++) {
System.out.println(s);
}
}
}
@FreeFly19
FreeFly19 / Ex1.java
Last active October 23, 2016 22:15 — forked from greensma/Ex1.java
Home work #2 Иван Смаглюк
class Ex1 {
public static void main(String args[]) {
int a = 4;
System.out.print(a);
if (a % 2 == 0) {
System.out.println(" is Even number");
} else {
System.out.println(" is Odd number");
}
@FreeFly19
FreeFly19 / 1
Last active October 23, 2016 22:12 — forked from makaliuk/1
Makaliuk Maxim 1
сложн ( ̄ー ̄)