Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile
public interface IMessageGateway
{
// will throw exception if sending fails
void SendSMS(SMS sms);
}
-------------------------------------------------
//
// in the View constructor
this.WhenActivated(d =>
{
d(MyListView.Events().SelectionChanged.Subscribe(args =>
{
foreach (var item in args.AddedItems.Cast<MyModelType>())
{
item.IsSelected = true;
}
Hi Geoffrey,
We're reaching out to let you know about an issue affecting Selective Sync that caused some files to be deleted from Dropbox. This problem occurred when the Dropbox desktop application shut down or restarted while users were applying Selective Sync settings.
Based on our investigation of this issue, we think you may be among the small number of users who were affected.
If you haven't used Selective Sync before, you can stop reading now because you weren't affected.
If you have used Selective Sync, we wanted to check whether your Dropbox may have been affected. We've set up a personalized web page where you can see if there are files that shouldn't have been deleted and try to restore them.
Hi Geoffrey,
We're reaching out to let you know about an issue affecting Selective Sync that caused some files to be deleted from Dropbox. This problem occurred when the Dropbox desktop application shut down or restarted while users were applying Selective Sync settings.
Based on our investigation of this issue, we think you may be among the small number of users who were affected.
If you haven't used Selective Sync before, you can stop reading now because you weren't affected.
If you have used Selective Sync, we wanted to check whether your Dropbox may have been affected. We've set up a personalized web page where you can see if there are files that shouldn't have been deleted and try to restore them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using FloJoCore.Helpers;
using FloJoCore.Models;
using Fusillade;
using Refit;
namespace FloJoCore
{"@encoding":"iso-8859-1","@version":"1.0","petfinder":{"@xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","breeds":{"breed":[{"$t":"Affenpinscher"},{"$t":"Afghan Hound"},{"$t":"Airedale Terrier"},{"$t":"Akbash"},{"$t":"Akita"},{"$t":"Alaskan Malamute"},{"$t":"American Bulldog"},{"$t":"American Eskimo Dog"},{"$t":"American Hairless Terrier"},{"$t":"American Staffordshire Terrier"},{"$t":"American Water Spaniel"},{"$t":"Anatolian Shepherd"},{"$t":"Appenzell Mountain Dog"},{"$t":"Australian Cattle Dog (Blue Heeler)"},{"$t":"Australian Kelpie"},{"$t":"Australian Shepherd"},{"$t":"Australian Terrier"},{"$t":"Basenji"},{"$t":"Basset Hound"},{"$t":"Beagle"},{"$t":"Bearded Collie"},{"$t":"Beauceron"},{"$t":"Bedlington Terrier"},{"$t":"Belgian Shepherd Dog Sheepdog"},{"$t":"Belgian Shepherd Laekenois"},{"$t":"Belgian Shepherd Malinois"},{"$t":"Belgian Shepherd Tervuren"},{"$t":"Bernese Mountain Dog"},{"$t":"Bichon Frise"},{"$t":"Black and Tan Coonhound"},{"$t":"Black Labrador Retriever"},{"$t":"Black Mouth Cur
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Net;
using System.Web;
using System.Web.Mvc;
using DevTrends.MvcDonutCaching;
using GhuntleyWeb.Services;
namespace GhuntleyWeb.Controllers
{
public SearchViewModel(ISearchService searchService = null) : ReactiveObject, IRoutableViewHost
{
SearchService = searchService ?? Locator.Current.GetService&lt;ISearchService&gt;();
// Here we're describing here, in a *declarative way*, the conditions in
// which the Search command is enabled. Now our Command IsEnabled is
// perfectly efficient, because we're only updating the UI in the scenario
// when it should change.
var canSearch = this.WhenAny(x => x.SearchQuery, x => !String.IsNullOrWhiteSpace(x.Value));
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net;
namespace HTTP_Test