Skip to content

Instantly share code, notes, and snippets.

View Ezeji's full-sized avatar

Franklin Ezeji Ezeji

View GitHub Profile
@Ezeji
Ezeji / AppShell.xaml
Last active February 12, 2021 12:14
This gist contains code snippets for a typical shell xaml page using a top tabbed page from Xamarin Community Toolkit TabView in a bottom Shell TabBar. The top tabbed page is called DashboardPage.
<?xml version="1.0" encoding="utf-8" ?>
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FlyoutBehavior="Disabled"
xmlns:local="clr-namespace:MedTracker.View"
mc:Ignorable="d"
x:Class="MedTracker.AppShell">
@Ezeji
Ezeji / DashboardPage.xaml
Created February 12, 2021 12:43
This gist contains code snippets for the DashboardPage which is a top tabbed page from Xamarin Community Toolkit TabView in shell bottom tabbed page(TabBar).
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
xmlns:yummy="clr-namespace:Xamarin.Forms.PancakeView;assembly=Xamarin.Forms.PancakeView"
x:Name="ProgressDashboard"
Title="Medication Tracker"
x:Class="MedTracker.View.DashboardPage">
@Ezeji
Ezeji / README.md
Created February 28, 2021 14:05 — forked from aishwarya8615/README.md
Healthcare Dataset Stroke Data

Dataset Source: Healthcare Dataset Stroke Data from Kaggle.

This dataset is used to predict whether a patient is likely to get stroke based on the input parameters like gender, age, and various diseases and smoking status. A subset of the original train data is taken using the filtering method for Machine Learning and Data Visualization purposes.

About the Data: Each row in the data provides relavant information about a person , for instance; age, gender,smoking status, occurance of stroke in addition to other information Unknown in Smoking status means the information is unavailable. N/A in other input fields imply that it is not applicable.

@Ezeji
Ezeji / RemoveArrayDuplicate.cs
Last active April 12, 2021 20:33
This algorithm focuses on removing array duplicates.
public static int RemoveArrayDuplicate(int[] nums)
{
int arrayLength = 0;
for (int i = 0; i < nums.Length; i++)
{
if (nums[i] == nums[i++])
{
arrayLength = arrayLength + 1;
@Ezeji
Ezeji / RemoveNumberInstances.cs
Created April 16, 2021 23:05
This algorithm focuses on removing number instances.
public static int RemoveNumberInstances(int[] nums, int val)
{
if (nums == null)
{
return 0;
}
else
{
nums = nums.Where(arrayElement => arrayElement != val).ToArray();
@Ezeji
Ezeji / NumberPositionInArray.cs
Last active April 27, 2021 03:54
This algorithm focuses on finding the position of a number in a sorted array.
class Program
{
private static List<int> ResultWhenValIsInArray { get; set; } = new List<int>();
private static List<int> ResultWhenValIsNotInArray { get; set; }
static void Main(string[] args)
{
ResultWhenValIsInArray.Add(-1);
ResultWhenValIsInArray.Add(-1);
@Ezeji
Ezeji / ArrayProducts.cs
Last active May 2, 2021 16:44
This algorithm focuses on finding the product of array elements.
class Program
{
private static int TotalNumber { get; set; }
private static List<int> Result { get; set; } = new List<int>();
static void Main(string[] args)
{
TotalNumber = 1;
int[] nums = { 4, 5, 10, 2 };
@Ezeji
Ezeji / MergeArraysInIncreasingOrder.cs
Last active May 12, 2021 18:11
This algorithm focuses on merging two arrays and sorting them in increasing order.
class Program
{
private static List<int> SingleArray { get; set; } = new List<int>();
static void Main(string[] args)
{
int[] classA = { 13, 15, 19 };
int[] classB = { 11, 13, 18 };
AddFirstArrayIntoSingleArray(classA);
@Ezeji
Ezeji / ShufflePupils.cs
Created May 15, 2021 11:37
This algorithm shuffle pupils on an assembly line by moving a number of pupils either to the front of the line or to the end of the line.
class Program
{
private static List<int> Result { get; set; } = new List<int>();
static void Main(string[] args)
{
int[] nums = { 4, 1, 3 };
int val = -1;
ShufflePupils(nums, val);
@Ezeji
Ezeji / MinimiumTimeDifference.cs
Created May 23, 2021 21:09
This algorithm finds the minimum time difference between any two times in an array.
class Program
{
private static List<string> MinutesArray { get; set; } = new List<string>();
static void Main(string[] args)
{
string[] timeArray = { "16:15", "16:00", "12:20" };
GetMinutesFromTimeArrayIntoMinutesArray(timeArray);
var result = MinimiumTimeDifference(MinutesArray);