Skip to content

Instantly share code, notes, and snippets.

👷
Working on something great!

Jon Douglas JonDouglas

👷
Working on something great!
Block or report user

Report or block JonDouglas

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
@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
{
@JonDouglas
JonDouglas / iOSBackground
Created Feb 11, 2014
iOS Background Task
View iOSBackground
using System;
using MonoTouch.UIKit;
using System.Threading.Tasks;
using System.Threading;
using System.Text;
using MonoTouch.Foundation;
namespace Demo2LongRunningTasks
{
partial class LongRunningTaskViewController : UIViewController
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)
You can’t perform that action at this time.