Skip to content

Instantly share code, notes, and snippets.

View AhmedMourad0's full-sized avatar
🐧
Farming Penguins

Ahmed Mourad AhmedMourad0

🐧
Farming Penguins
View GitHub Profile
@AhmedMourad0
AhmedMourad0 / section_.idea_misc.xml
Last active November 27, 2017 18:20
College - Section - 1
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
</project>
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
@AhmedMourad0
AhmedMourad0 / jpattern_annotations_Builder.java
Last active January 17, 2018 10:20
This project is still in its early stages of construction, it's not in Alpha, it's not in Beta, it's not even in Gamma it's still underdeveloped!
package com.jpattern.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface Builder {
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
@AhmedMourad0
AhmedMourad0 / classification.py
Last active October 28, 2018 14:24
A college thing.
def bubble_sort(tuples):
for iteration in range(len(tuples) - 1, 0, -1):
for i in range(iteration):
if tuples[i][1] > tuples[i + 1][1]:
temp = tuples[i]
tuples[i] = tuples[i + 1]
tuples[i + 1] = temp
return tuples
#include <iostream>
#include <cmath>
using namespace std;
int factorial(int n) {
int fact = 1;
for (int i = 1; i <= n; ++i)
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />