Skip to content

Instantly share code, notes, and snippets.

💭
🎶 You can roam the world with colours, flying high 🎶

Luis Beltran icebeam7

💭
🎶 You can roam the world with colours, flying high 🎶
Block or report user

Report or block icebeam7

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@icebeam7
icebeam7 / CustomPickerAndroid.cs
Last active Dec 21, 2019
MyCustomPicker: CustomPickerAndroid.cs
View CustomPickerAndroid.cs
using System;
using System.Linq;
using System.Collections.Generic;
using Android.App;
using Android.Views;
using Android.Widget;
using Android.Graphics;
using MyCustomPicker.Controls;
@icebeam7
icebeam7 / custom_picker_dialog.xml
Last active Dec 21, 2019
MyCustomPicker: custom_picker_dialog.xml
View custom_picker_dialog.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:id="@+id/titletextview"
android:layout_width="200dp"
@icebeam7
icebeam7 / cell_layout.xml
Last active Dec 21, 2019
MyCustomPicker: cell_layout.xml
View cell_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:id="@+id/textview1"
@icebeam7
icebeam7 / CustomPicker.cs
Last active Dec 21, 2019
MyCustomPicker : CustomPicker.cs
View CustomPicker.cs
using Xamarin.Forms;
namespace MyCustomPicker.Controls
{
public class CustomPicker : Picker
{
public static readonly BindableProperty ItemFontFamilyProperty =
BindableProperty.Create("ItemFontFamily", typeof(string), typeof(CustomPicker), defaultBindingMode: BindingMode.OneWay);
public string ItemFontFamily
@icebeam7
icebeam7 / PickerExample.xaml
Last active Dec 21, 2019
MyCustomPicker: PickerExample.xaml
View PickerExample.xaml
<Picker Title="Select a monkey"
TitleColor="Green"
ItemsSource="{Binding Monkeys}"
ItemDisplayBinding="{Binding Name}"
TextColor="Orange"
FontAttributes="Italic"
FontSize="24"/>
@icebeam7
icebeam7 / App.xaml.cs
Created Dec 18, 2019
AnomalyDetector: App.xaml.cs
View App.xaml.cs
using Xamarin.Forms;
namespace AdExchangeAnalyzer
{
public partial class App : Application
{
public App()
{
InitializeComponent();
@icebeam7
icebeam7 / AnomalyView.xaml
Last active Dec 18, 2019
AnomalyDetector: AnomalyView.xaml
View AnomalyView.xaml
<?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:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:charts="clr-namespace:Microcharts.Forms;assembly=Microcharts.Forms"
xmlns:vm="clr-namespace:AdExchangeAnalyzer.ViewModels"
mc:Ignorable="d"
x:Class="AdExchangeAnalyzer.Views.AnomalyView">
@icebeam7
icebeam7 / AnomalyViewModel.cs
Last active Dec 18, 2019
AnomalyDetector: AnomalyViewModel.cs
View AnomalyViewModel.cs
using System.Linq;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using AdExchangeAnalyzer.Models;
using AdExchangeAnalyzer.Services;
using SkiaSharp;
using Microcharts;
using Xamarin.Forms;
@icebeam7
icebeam7 / BaseViewModel.cs
Last active Dec 18, 2019
AnomalyDetector: BaseViewModel.cs
View BaseViewModel.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace AdExchangeAnalyzer.ViewModels
{
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string propertyName = "")
@icebeam7
icebeam7 / AnomalyDetectorService.cs
Created Dec 18, 2019
AnomalyDetector: AnomalyDetectorService.cs
View AnomalyDetectorService.cs
using System;
using System.Net;
using System.Text;
using System.Net.Http;
using System.Threading.Tasks;
using System.Net.Http.Headers;
using Newtonsoft.Json;
using AdExchangeAnalyzer.Models;
You can’t perform that action at this time.