Skip to content

Instantly share code, notes, and snippets.

View belalahmedhamed's full-sized avatar
:octocat:

Belal A. Hamed belalahmedhamed

:octocat:
View GitHub Profile
@belalahmedhamed
belalahmedhamed / keypoints.cpp
Created December 9, 2018 06:08 — forked from piedar/keypoints.cpp
Keypoint Object Matching with SURF/BRISK - https://www.youtube.com/watch?v=-r9J1eO4qg4
// This file is hereby released into the public domain.
// This code contains a skeleton for Keypoint Object Matching with SURF/BRISK
// It was extracted from the code of an unreleased demo - https://www.youtube.com/watch?v=-r9J1eO4qg4
// It will not compile as-is, but may function as a starting point.
#include <set>
#include <string>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "Freenect.hpp"
@belalahmedhamed
belalahmedhamed / Option A
Created June 10, 2018 07:11 — forked from udacityandroid/Option A
Android Development for Beginners : Calculate the Price Method
/**
* Calculates the price of the order based on the current quantity.
*
* @return the price
*/
private int calculate price(int quantity {
int price = quantity * 5;
return price;
}
@belalahmedhamed
belalahmedhamed / activity_main.xml
Created January 7, 2018 04:59 — forked from anonymous/activity_main.xml
RelativeLayout XML for Udacity quiz question
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
@belalahmedhamed
belalahmedhamed / sample
Created September 7, 2017 17:44 — forked from anonymous/sample
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>