This file contains 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
puts 'Hello!' |
This file contains 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.evjeny.mentalarithmetic; | |
import android.os.Environment; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; |
This file contains 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.evjeny.welcome; | |
public class Welcome { | |
public static void main(String[] args) { | |
System.out.println("Welcome to my repo!"); | |
} | |
} |
This file contains 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
>+++++++++[<++++++++>-]<. |
This file contains 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
//Created by evjeny | |
fun main(args: Array<String>) { | |
val time = Integer.parseInt(LocalDateTime.now().format(DateTimeFormatter.ofPattern("HH"))) | |
print(if(time in 23..6) "Sleeps" else "Hallo") | |
} |
This file contains 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.util.Scanner; | |
/** | |
* Created by evjeny | |
*/ | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
double a = scanner.nextDouble(), b = scanner.nextDouble(); | |
if(a!=0) { |
This file contains 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.util.Scanner; | |
/** | |
* Created by evjeny | |
*/ | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int a = scanner.nextInt(); | |
a += (a%2==0?1:2); |
This file contains 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
def gip(msk,adrs): | |
ma = [int(i) for i in msk.split(".")] | |
da = [int(i) for i in adrs.split(".")] | |
res = "" | |
for j in range(4): | |
c = ma[j]&da[j] | |
if j!=3: | |
res += str(c) + "." | |
else: | |
res += str(c) |
This file contains 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
def abs(k): | |
if k>=0: | |
return k | |
else: | |
return -k | |
def dist(ax,ay,bx,by): | |
if ax == bx: | |
return abs(ay-by) | |
elif ay==by: |
This file contains 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
def abs(k): | |
if k>=0: | |
return k | |
else: | |
return -k | |
def dist(ax,ay,bx,by): | |
if ax == bx: | |
return abs(ay-by) | |
elif ay==by: |
OlderNewer