Skip to content

Instantly share code, notes, and snippets.

Avatar

Vhenrique05

View GitHub Profile
@Vhenrique05
Vhenrique05 / calc-GCD.py
Created Jun 14, 2021
Code to calculate Greater common divisor
View calc-GCD.py
def calc(x, y):
xd = ([i for i in range(x) if i != 0 and x % i == 0])
yd = ([i for i in range(y) if i != 0 and y % i == 0])
i, found = len(xd)-1, -1
while found == -1:
if(xd[i] in yd): found = xd[i]
i -= 1
return found
View SimpleDecoder.java
import java.util.Scanner;
// By VHenrique05@outlook.com github: vhenrique05
public class Test {
public static String VHDecoder(String e) {
e = e.replace("!", "");
e = e.replace("@", "");
View project 1_.idea_jsLibraryMappings.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="PROJECT" libraries="{jquery-3.4.1}" />
</component>
</project>