Skip to content

Instantly share code, notes, and snippets.

View xplatsolutions's full-sized avatar
🎯
Focusing

geohash xplatsolutions

🎯
Focusing
View GitHub Profile
@xplatsolutions
xplatsolutions / ReactiveTableViewSourceBase.cs
Created June 18, 2017 19:19
ReactiveTableViewSourceBase<TViewModel> : ReactiveTableViewSource<TViewModel>
public abstract class ReactiveTableViewSourceBase<TViewModel> : ReactiveTableViewSource<TViewModel>, IInformsEnd
{
private readonly Subject<Unit> _requestMoreSubject = new Subject<Unit>();
private readonly Subject<CGPoint> _scrollSubject = new Subject<CGPoint>();
public IObservable<CGPoint> DidScroll
{
get { return _scrollSubject.AsObservable(); }
}
@xplatsolutions
xplatsolutions / AsyncHelper.cs
Created September 19, 2016 12:28 — forked from ChrisMcKee/AsyncHelper.cs
AsyncHelpers to simplify calling of Async/Task methods from synchronous context.
namespace My.Common
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
public static class AsyncHelpers
{
/// <summary>
@xplatsolutions
xplatsolutions / gist:3a9657f31a34e1c8f944
Created July 15, 2015 02:06
From Mac machine calling localhost from Chrome.
[Fiddler] The connection to 'localhost' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it 127.0.0.1:128
@xplatsolutions
xplatsolutions / gist:e34e1e21319627fed05c
Created July 15, 2015 02:02
Azure Mobile Services remote client error in try it out
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS 8.5 Detailed Error - 404.0 - Not Found</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}