Skip to content

Instantly share code, notes, and snippets.

👶
🦈, doo doo doo doo doo doo

Geoffrey Huntley ghuntley

👶
🦈, doo doo doo doo doo doo
Block or report user

Report or block ghuntley

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
View gist:8965605
public interface IMessageGateway
{
// will throw exception if sending fails
void SendSMS(SMS sms);
}
-------------------------------------------------
View gist:b036fe5ba354153e704b
//
// in the View constructor
this.WhenActivated(d =>
{
d(MyListView.Events().SelectionChanged.Subscribe(args =>
{
foreach (var item in args.AddedItems.Cast<MyModelType>())
{
item.IsSelected = true;
}
View gist:4c3cf70179968a933641
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.
View gist:42803b4cabb181098063
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.
View CircleImageAndroid.cs
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;
View refit + fusillade
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
View response.json
{"@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
View BlogPostController.cs
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
{
View compelling example.cs
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));
View SimpleHttpClient.cs
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
You can’t perform that action at this time.