Skip to content

Instantly share code, notes, and snippets.

👷‍♂️
Working on something great!

Jon Douglas JonDouglas

👷‍♂️
Working on something great!
View GitHub Profile
@JonDouglas
JonDouglas / webservice
Last active Aug 29, 2015
Xamarin Web Services
View webservice
using System;
using System.Collections.Generic;
using System.Json;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace Xamarin.WebServicesAsync.Rest.Droid.Client
{
View MakeChocolate
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MakeChocolate
{
public class Program
{
View AndroidService
using Android.App;
using Android.Content;
using Android.Widget;
using Android.Util;
using Android.OS;
using System.Threading.Tasks;
using System.Threading;
namespace Demo2HelloService
{
@JonDouglas
JonDouglas / AndroidServiceActivity
Created Feb 11, 2014
Android Service Activity
View AndroidServiceActivity
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Graphics;
using Android.Util;
View Mirror
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Mirror
{
public class Program
{
public static void Main(string[] args)
View Rounding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Rounding
{
public class Program
{
public static void Main(string[] args)
View servicecontainer.cs
public static class ServiceContainer
{
static readonly Dictionary<Type, Lazy<object>> services = new Dictionary<Type, Lazy<object>>();
public static void Register<T>(Func<T> function)
{
services[typeof(T)] = new Lazy<object>(() => function());
}
public static T Resolve<T>()
View gist:f8b0e3e306b3b9a8371f
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace FormsPlayground
{
class RelativeLayoutDemoPage : ContentPage
View gist:61076025de2e64ed6eea
public class ApplicationUserManager : UserManager<ApplicationUser>
{
public ApplicationUserManager(IUserStore<ApplicationUser> store)
: base(store)
{
}
public static ApplicationUserManager Create(
IdentityFactoryOptions<ApplicationUserManager> options,
IOwinContext context)
View gist:0eeee51e08e63bda7a46
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace NewCameraBroadcast
{
You can’t perform that action at this time.